(feat): Adds Warning to Docs About Discriminator Keyword

This commit is contained in:
2025-08-19 20:44:16 -03:00
parent 15944549a0
commit c5e70402db

View File

@@ -106,3 +106,7 @@ Examples
.. warning:: .. warning::
If your data could match multiple schemas in a oneOf, validation will fail. Ensure schemas are mutually exclusive. If your data could match multiple schemas in a oneOf, validation will fail. Ensure schemas are mutually exclusive.
.. warning::
The discriminator feature is not officially in the JSON Schema specification, it was introduced by OpenAI. Use it with caution and ensure it fits your use case.