Skip to content
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

Closed
samuelcolvin opened this issue Jun 3, 2017 · 8 comments
Closed

More documentation #29

samuelcolvin opened this issue Jun 3, 2017 · 8 comments

Comments

@samuelcolvin
Copy link
Member

samuelcolvin commented Jun 3, 2017

  • clean methods
  • more explanation on usage
  • more benchmarks
  • Any
@pauleveritt
Copy link

@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?

@samuelcolvin
Copy link
Member Author

Currently implemented via validate_* but not documented properly as I mean to change it completely.

@pauleveritt
Copy link

Is the usage I described a valid use case for what you intend to do?

@pauleveritt
Copy link

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.

@samuelcolvin
Copy link
Member Author

That's exactly the kind of use case.

@samuelcolvin
Copy link
Member Author

This should be fixed by version v0.6.

@pauleveritt documentation should now be available on validators, see here.

@pauleveritt
Copy link

@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.

@pauleveritt
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants