We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have followed the example in the docs, but I don't get output when visiting http://localhost:5000: https://i.imgur.com/vqIEkw1.png. Console outputs nothing. https://i.imgur.com/Yiw7XmU.png
http://localhost:5000
While this works: http://localhost:5000/schema
http://localhost:5000/schema
{"$ref":"#/definitions/Query","$schema":"http://json-schema.org/draft-07/schema#","definitions":{"Query":{"additionalProperties":false,"properties":{"from_country":{"default":"UK","title":"from_country","type":["string","null"]},"from_country_iso2":{"default":null,"maxLength":2,"minLength":2,"title":"from_country_iso2","type":["string","null"]},"from_country_iso3":{"default":null,"maxLength":3,"minLength":3,"title":"from_country_iso3","type":["string","null"]},"in_amount":{"default":"200","title":"in_amount","type":"string"},"to_country":{"default":"US","title":"to_country","type":["string","null"]},"to_country_iso2":{"default":null,"maxLength":2,"minLength":2,"title":"to_country_iso2","type":["string","null"]},"to_country_iso3":{"default":null,"maxLength":3,"minLength":3,"title":"to_country_iso3","type":["string","null"]}},"type":"object"}}}
Code as in docs:
@app.route("/schema") def get_schema(): js_di = JSONSchema().dump(Query.Schema()) return jsonify(js_di) @app.route("/") def home(): return """<!DOCTYPE html> ..............
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have followed the example in the docs, but I don't get output when visiting
http://localhost:5000
:https://i.imgur.com/vqIEkw1.png. Console outputs nothing.
https://i.imgur.com/Yiw7XmU.png
While this works:
http://localhost:5000/schema
Code as in docs:
The text was updated successfully, but these errors were encountered: