This is a jsonschema and flask sandbox. This enables setting up some jsonschemas and make them available via a HTTP interface.
- complex JSON schemas that can be resolved if they have references
- IE DRY up schemas by sharing components but be able to view a schema de-referenced´
- store schemas in an embedded db (sqlite?)? or just use the file system?
- sqlite has json functions
- instead of a file structure just have table(s)
- if i use a db schemas need to be easy to discover (ie see a list like a filesystem?)
- how do i list them now in flask?
- version schemas so you can update them
- not sure if it makes sense to require a version # in the json schema, but perhaps in the db?
Document with swagger/openapi and/or use connexion?
- when calling /schemas/ to view, if it's a dir, create links to the files so you can just click on it
- create validate blueprint and a schemas blueprint?
- print exceptions better, look into traceback
- can post a schema
- Flask API
- Werkzeug Source
- Understanding JSON Schema
- Serving static files in Flask
- Explore flask patterns
- HTTP Status Codes
- JSONRef
It's possible to use relative file urls in the schemas as long as a base-uri is set to an absolute file URI for jsonref and a RefResolver objects being used.