Skip to content

Commit

Permalink
Feature/fixes2 (#26)
Browse files Browse the repository at this point in the history
* fixed issues

* merged

* sync
  • Loading branch information
colameo authored Mar 12, 2021
1 parent 6266fcd commit 944f1cf
Show file tree
Hide file tree
Showing 8 changed files with 129 additions and 135 deletions.
72 changes: 36 additions & 36 deletions JDLApplicationOptions.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -e

files=$(find src -name *.json ! -path "*.schema.*" | awk -F/ '{ print $NF }' | cut -d '.' -f 1)

for f in $files
Expand Down
2 changes: 0 additions & 2 deletions src/JDLApplicationOptions.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
}
]
],
"additionalItems": true,
"items": {
"anyOf": [
{
Expand Down Expand Up @@ -102,7 +101,6 @@
"microservice"
]
],
"additionalItems": true,
"items": {
"anyOf": [
{
Expand Down
2 changes: 0 additions & 2 deletions src/JDLDeploymentOptions.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/items",
"anyOf": [
Expand Down Expand Up @@ -76,7 +75,6 @@
"\"docker push\""
]
],
"additionalItems": true,
"items": {
"$id": "#/items/anyOf/0/properties/values/items",
"anyOf": [
Expand Down
1 change: 0 additions & 1 deletion src/JDLFields.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"title": "The Root Schema",
"description": "The root schema comprises the entire JSON document.",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/items",
"type": "object",
Expand Down
1 change: 0 additions & 1 deletion src/JDLLanguages.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"title": "The Root Schema",
"description": "The root schema comprises the entire JSON document.",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/items",
"type": "object",
Expand Down
2 changes: 0 additions & 2 deletions src/JDLOptions.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"title": "The Root Schema",
"description": "The root schema comprises the entire JSON document.",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/items",
"type": "object",
Expand Down Expand Up @@ -95,7 +94,6 @@
"no"
]
],
"additionalItems": true,
"items": {
"$id": "#/items/properties/values/items",
"type": "string",
Expand Down
182 changes: 91 additions & 91 deletions src/JDLValidations.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,106 +2,106 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "array",
"title": "The Root Schema",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": [],
"additionalItems": true,
"items": {
"$id": "#/items",
"type": "object",
"title": "The Items Schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
"examples": [
[
{
"code": "UNIQUE",
"name": "unique",
"code": "REQUIRED",
"name": "required",
"baseType": "BOOLEAN",
"parseType": "Boolean",
"valueIsRequired": false
},
{
"code": "MIN",
"name": "min",
"baseType": "INTEGER",
"parseType": "Number",
"valueIsRequired": true
},
{
"code": "PATTERN",
"name": "pattern",
"baseType": "STRING",
"parseType": "RegExp",
"valueIsRequired": true
"code": "UNIQUE",
"name": "unique",
"baseType": "BOOLEAN",
"parseType": "Boolean",
"valueIsRequired": false
}
],
"additionalProperties": true,
"required": [
"code",
"name",
"baseType",
"parseType"
],
"properties": {
"code": {
"$id": "#/items/properties/code",
"type": "string",
"title": "The Code Schema",
"description": "The code is the internal ID for the validation object.",
"default": "",
"examples": [
"REQUIRED",
"MIN",
"PATTERN"
]
},
"name": {
"$id": "#/items/properties/name",
"type": "string",
"title": "The Name Schema",
"description": "The name is the validation's visible name.",
"default": "",
"examples": [
"required",
"min",
"pattern"
]
},
"baseType": {
"$id": "#/items/properties/baseType",
"type": "string",
"title": "The baseType Schema",
"description": "The validation's baseType refers to the value type, either STRING, INTEGER or BOOLEAN.",
"default": "",
"examples": [
"STRING",
"INTEGER",
"BOOLEAN"
]
},
"parseType": {
"$id": "#/items/properties/parseType",
"type": "string",
"title": "The parseType Schema",
"description": "The validation's parseType refers to what the value can be parsed to.",
"default": "",
"examples": [
"RegExp",
"Number",
"String"
]
},
"valueIsRequired": {
"$id": "#/items/properties/valueIsRequired",
"type": "boolean",
"title": "The valueIsRequired Schema",
"description": "Whether the validation requires a value.",
"default": "",
]
],
"items": {
"$id": "#/items",
"anyOf": [
{
"$id": "#/items/anyOf/0",
"type": "object",
"title": "The first anyOf schema",
"description": "An explanation about the purpose of this instance.",
"default": {},
"examples": [
true,
false
]
{
"code": "REQUIRED",
"name": "required",
"baseType": "BOOLEAN",
"parseType": "Boolean",
"valueIsRequired": false
}
],
"required": [
"code",
"name",
"baseType",
"parseType",
"valueIsRequired"
],
"properties": {
"code": {
"$id": "#/items/anyOf/0/properties/code",
"type": "string",
"title": "The code schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"REQUIRED"
]
},
"name": {
"$id": "#/items/anyOf/0/properties/name",
"type": "string",
"title": "The name schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"required"
]
},
"baseType": {
"$id": "#/items/anyOf/0/properties/baseType",
"type": "string",
"title": "The baseType schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"BOOLEAN"
]
},
"parseType": {
"$id": "#/items/anyOf/0/properties/parseType",
"type": "string",
"title": "The parseType schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"Boolean"
]
},
"valueIsRequired": {
"$id": "#/items/anyOf/0/properties/valueIsRequired",
"type": "boolean",
"title": "The valueIsRequired schema",
"description": "An explanation about the purpose of this instance.",
"default": false,
"examples": [
false
]
}
},
"additionalProperties": true
}
}
]
}
}
}

0 comments on commit 944f1cf

Please sign in to comment.