:version:`2.0.0 <v1.10.0...v2.0.0>` - 2020-07-01
------------------------------------------------
**Changed**
- **BREAKING**. Base URL handling. ``base_url`` now is treated as one with a base path included.
You should pass a full base URL now instead:
.. code:: bash
schemathesis run --base-url=http://127.0.0.1:8080/api/v2 ...
This value will override ``basePath`` / ``servers[0].url`` defined in your schema if you use
Open API 2.0 / 3.0 respectively. Previously if you pass a base URL like the one above, it
was concatenated with the base path defined in the schema, which leads to a lack of ability
to redefine the base path. :issue:`511`
**Fixed**
- Show the correct URL in CLI progress when the base URL is overridden, including the path part. :issue:`511`
- Construct valid URL when overriding base URL with base path. :issue:`511`
**Example**:
.. code:: bash
Base URL in the schema : http://0.0.0.0:8081/api/v1
`--base-url` value in CLI : http://0.0.0.0:8081/api/v2
Full URLs before this change : http://0.0.0.0:8081/api/v2/api/v1/users/ # INVALID!
Full URLs after this change : http://0.0.0.0:8081/api/v2/users/ # VALID!
**Removed**
- Support for hooks without `context` argument in the first position.
- Hooks registration by name and function. Use ``register`` decorators instead. For more details, see the "Customization" section in our documentation.
- ``BaseSchema.with_hook`` and ``BaseSchema.register_hook``. Use ``BaseSchema.hooks.apply`` and ``BaseSchema.hooks.register`` instead.