Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2024-08

JSON-Schema added

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

I added a JSON-Schema class to FPC. It currently supports the latest JSON-Schema draft (2020-12) There also is a validator class. There is a testsuite, but testsuites only go so far, so I'd appreciate some feedback from people who have need for JSON-schema. (in particular, the $ref handling is a bit hairy. Available documentation is definitely lacking in clarity)

The next step is adding support for OpenApi (AKA swagger).

Michael.

Thomas Kurz
to Michael Van Canneyt

Great!

Is this Json Typedef as described here? https://jsontypedef.com/

Thomas

Earlier message 18 lines
----- Original Message ----- From: Michael Van Canneyt via fpc-pascal To: Lazarus mailing list Sent: Saturday, August 17, 2024, 16:52:32 Subject: [fpc-pascal] JSON-Schema added Hi, I added a JSON-Schema class to FPC. It currently supports the latest JSON-Schema draft (2020-12) There also is a validator class. There is a testsuite, but testsuites only go so far, so I'd appreciate some feedback from people who have need for JSON-schema. (in particular, the $ref handling is a bit hairy. Available documentation is definitely lacking in clarity) The next step is adding support for OpenApi (AKA swagger). Michael.
Michael Van Canneyt
to Thomas Kurz
Thomas Kurz wrote
Great! Is this Json Typedef as described here? https://jsontypedef.com/

No, it is https://json-schema.org

I know about jsontypedef, and it is on my todo list because personally I prefer it to json-schema which is a bit heavy-handed. (as usual when big companies take over a spec...)

Unfortunately, json-schema is the standard used in OpenAPI (and e.g. google API descriptions). It is support for OpenAPI which I am ultimately after (both to generate and to read to create code).

But contributions for json typedef are definitely welcome...

Michael.