From dafc80f8a487469b5636959a6803914c80b42e82 Mon Sep 17 00:00:00 2001 From: Peter Wall Date: Sun, 25 Oct 2020 21:06:28 +1100 Subject: [PATCH 1/3] Please consider adding json-kotlin-schema and -codegen to the implementation list --- _data/validator-libraries-modern.yml | 6 ++++++ implementations.md | 2 ++ 2 files changed, 8 insertions(+) diff --git a/_data/validator-libraries-modern.yml b/_data/validator-libraries-modern.yml index 45f2c77f..6c37bd84 100644 --- a/_data/validator-libraries-modern.yml +++ b/_data/validator-libraries-modern.yml @@ -127,6 +127,12 @@ date-draft: draft: [7, 6, 4] license: Apache License 2.0 + - name: json-kotlin-schema + url: https://github.com/pwall567/json-kotlin-schema + notes: Kotlin implementation of JSON Schema + date-draft: [2019-09] + draft: [7] + license: MIT - name: JavaScript implementations: - name: ajv diff --git a/implementations.md b/implementations.md index 971abd59..9e44db92 100644 --- a/implementations.md +++ b/implementations.md @@ -196,6 +196,8 @@ are the only keywords that changed. - [json-schema-to-elm](https://github.com/dragonwasrobot/json-schema-to-elm) - generates Elm types, JSON decoders+encoders, and fuzz tests from one or more JSON Schema files, using [dragonwasrobot/json_schema](https://github.com/dragonwasrobot/json_schema) *supports Draft 7* - Java - [jsonCodeGen](https://github.com/schlothauer-wauer/jsoncodegen) (MIT) - Groovy based generation tasks from JSON schema. Already includes templates/generators for Java Beans, Swagger specification files and PlantUML diagrams. +- Kotlin + - [json-kotlin-schema-codegen](https://github.com/pwall567/json-kotlin-schema-codegen) (MIT) - Generates Kotlin data classes from JSON Schema. - Online (web tool) - [quicktype.io](https://app.quicktype.io/#l=schema) - infer JSON Schema from samples, and generate TypeScript, C++, go, Java, C#, Swift, etc. types from JSON Schema - PHP From 47d460a2630afb9f95637d8f419886e1e916548b Mon Sep 17 00:00:00 2001 From: Peter Wall Date: Tue, 18 May 2021 21:30:30 +1000 Subject: [PATCH 2/3] Removed 2019-09 from supported drafts, added to codegen generated types --- _data/validator-libraries-modern.yml | 2 +- implementations.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_data/validator-libraries-modern.yml b/_data/validator-libraries-modern.yml index 6c37bd84..5150d4c1 100644 --- a/_data/validator-libraries-modern.yml +++ b/_data/validator-libraries-modern.yml @@ -130,7 +130,7 @@ - name: json-kotlin-schema url: https://github.com/pwall567/json-kotlin-schema notes: Kotlin implementation of JSON Schema - date-draft: [2019-09] + date-draft: draft: [7] license: MIT - name: JavaScript diff --git a/implementations.md b/implementations.md index 9e44db92..8e4ca800 100644 --- a/implementations.md +++ b/implementations.md @@ -197,7 +197,7 @@ are the only keywords that changed. - Java - [jsonCodeGen](https://github.com/schlothauer-wauer/jsoncodegen) (MIT) - Groovy based generation tasks from JSON schema. Already includes templates/generators for Java Beans, Swagger specification files and PlantUML diagrams. - Kotlin - - [json-kotlin-schema-codegen](https://github.com/pwall567/json-kotlin-schema-codegen) (MIT) - Generates Kotlin data classes from JSON Schema. + - [json-kotlin-schema-codegen](https://github.com/pwall567/json-kotlin-schema-codegen) (MIT) - Generates Kotlin data classes, Java classes or TypeScript interfaces from JSON Schema. - Online (web tool) - [quicktype.io](https://app.quicktype.io/#l=schema) - infer JSON Schema from samples, and generate TypeScript, C++, go, Java, C#, Swift, etc. types from JSON Schema - PHP From 5e72ef0e10b9d5c8021e9b9a8e41796262b9e2be Mon Sep 17 00:00:00 2001 From: Peter Wall Date: Fri, 21 May 2021 19:46:31 +1000 Subject: [PATCH 3/3] Added notes on coverage of specific drafts --- _data/validator-libraries-modern.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_data/validator-libraries-modern.yml b/_data/validator-libraries-modern.yml index fbdab964..5a78ee4a 100644 --- a/_data/validator-libraries-modern.yml +++ b/_data/validator-libraries-modern.yml @@ -137,7 +137,10 @@ license: Apache License 2.0 - name: json-kotlin-schema url: https://github.com/pwall567/json-kotlin-schema - notes: Kotlin implementation of JSON Schema + notes: | + Kotlin implementation of JSON Schema. + (Currently supports most of Draft 7; see the README for details. + Full compliance with Draft 7 and later drafts in progress.) date-draft: draft: [7] license: MIT