@@ -16,6 +16,10 @@ The first argument is always the value you want to validate.
1616The second argument is always the OpenAPI schema object.
1717The ``cls `` keyword argument is optional and defaults to ``OAS32Validator ``.
1818Use ``cls `` when you need a specific validator version/behavior.
19+ Common forwarded keyword arguments include:
20+
21+ - ``registry `` for reference resolution context
22+ - ``format_checker `` to control format validation behavior
1923
2024To validate an OpenAPI schema:
2125
@@ -74,9 +78,13 @@ Common pitfalls
7478 ``validate(schema, instance) ``
7579- ``validate `` does not load files from a path; load your OpenAPI document
7680 first and pass the parsed schema mapping
77- - when validating a schema fragment that uses ``$ref `` (for example,
78- ``paths/.../responses/.../schema ``), provide reference context via
79- ``registry=... `` as shown in :doc: `references `
81+ - ``validate `` treats the provided ``schema `` as the reference root; local
82+ references like ``#/components/... `` must exist within that mapping
83+ - when a schema uses external references (for example ``urn:... ``), provide
84+ reference context via ``registry=... `` as shown in :doc: `references `
85+ - for schema fragments containing local references (for example,
86+ ``paths/.../responses/.../schema ``), use a validator built from the full
87+ schema root and then validate the fragment via ``validator.evolve(...) ``
8088
8189Validators
8290----------
0 commit comments