-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More documentation #29
Comments
@samuelcolvin Are the clean_ methods implemented in any way? I don't see "clean" in the source anywhere. Here's the use case: I want to have an img_url or an img_src, but not both. If both, or neither, are supplied, I want to raise an exception. Will that fit what you have in mind for the clean methods? |
Currently implemented via |
Is the usage I described a valid use case for what you intend to do? |
Actually if you're going to change it then I'll avoid bugging you about it. No sense making you write stuff down, I can wait. |
That's exactly the kind of use case. |
This should be fixed by version v0.6. @pauleveritt documentation should now be available on validators, see here. |
@samuelcolvin Thanks for working on this, and perfect timing, I'm in an overhaul. FWIW, I'm working on a system to put structured YAML data in Sphinx docs, validated by pydantic. |
@samuelcolvin As an FYI, I'm using pydantic in an extensible system atop Sphinx. You register classes with models and can then embed schema-validated YAML in documents: https://github.com/pauleveritt/kaybee/blob/master/docs/features.rst#yaml-models |
The text was updated successfully, but these errors were encountered: