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

Nothing gets rendered by brutusin #146

Open
tsoernes opened this issue Apr 24, 2021 · 0 comments
Open

Nothing gets rendered by brutusin #146

tsoernes opened this issue Apr 24, 2021 · 0 comments

Comments

@tsoernes
Copy link

tsoernes commented Apr 24, 2021

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

{"$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> ..............
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

1 participant