How to resolve $ref from custom data store like AWS DynamoDB #1096
-
Hi, We use this package to validate JSON data with schema. We are storing JSON schemas in a AWS DynamodDB table as we have many of config like this. We have schemas created in a way that it promotes reusability where any schema could be re-used, its created as its own and stored in AWS DynamodDB and these are referenced $ref in other schemas where reusability is needed. When getting schema to validate main schema, how to resolve and get schema from AWS DynamodDB while resolving $ref from main schema to get other reusable schema based on $ref. If there is any example on how to fetch schema from custom data store helps us. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You will just need to implement a custom SchemaLoader and register that with the factory, see Customizing Schema Retrieval. You can refer to UriSchemaLoader as an example |
Beta Was this translation helpful? Give feedback.
You will just need to implement a custom SchemaLoader and register that with the factory, see Customizing Schema Retrieval.
You can refer to UriSchemaLoader as an example