Skip to content

Load schema from JSON#178

Merged
eyurtsev merged 5 commits intoeyurtsev:mainfrom
BorisWilhelms:feature/schema-loadble-from-json
Jun 27, 2023
Merged

Load schema from JSON#178
eyurtsev merged 5 commits intoeyurtsev:mainfrom
BorisWilhelms:feature/schema-loadble-from-json

Conversation

@BorisWilhelms
Copy link
Copy Markdown
Contributor

This PR makes the schema loadable from JSON via Object.parse_raw.

PR includes feature, tests and documentation

Link to Issue #177

@eyurtsev
Copy link
Copy Markdown
Owner

Hi @BorisWilhelms thanks for the contribution and the tests. The code looks good to me -- one question I wanted to ask is if you found a way to create the serialized format from the object or is only de-serialization supported?

@eyurtsev eyurtsev merged commit 94d6bcb into eyurtsev:main Jun 27, 2023
@BorisWilhelms BorisWilhelms deleted the feature/schema-loadble-from-json branch June 28, 2023 07:38
@BorisWilhelms
Copy link
Copy Markdown
Contributor Author

Hi @eyurtsev, currently only deserialization is supported. For serialization the $type property must be somehow present/filled. Will check the next couple of days, if there is a nice way to do that!

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

Successfully merging this pull request may close these issues.

2 participants