tbdex icon indicating copy to clipboard operation
tbdex copied to clipboard

Upgrade schemas to the latest draft version 2020-12

Open decentralgabe opened this issue 2 years ago • 4 comments

The schemas should all be updated to support the most recent json schema version. There are tools to automate this work.

decentralgabe avatar Nov 17 '23 23:11 decentralgabe

only concern here is other languages not yet supporting 2020-12

mistermoe avatar Jan 08 '24 21:01 mistermoe

Libs we use by language:

  • Kotlin - https://github.com/networknt/json-schema-validator supports v2020-12
  • JS - couldn't find one that we use but https://github.com/ajv-validator/ajv supports v2020-12
  • Swift - not using one yet but https://github.com/kylef/JSONSchema.swift supports v2020-12
  • Go - https://github.com/santhosh-tekuri/jsonschema supports v2020-12

decentralgabe avatar Jan 08 '24 21:01 decentralgabe

I have successfully used https://github.com/sourcemeta/alterschema to convert between versions

decentralgabe avatar Jan 08 '24 21:01 decentralgabe

i started with v2020-12 but had revert to v7 because the kotlin lib's implementation differs from the js one 😭

mistermoe avatar Jan 08 '24 23:01 mistermoe