Make prepositions/conjunctions in generated schema names lowercase

This commit is contained in:
Graham Esau 2019-10-27 22:48:35 +00:00
parent 09d76c93e4
commit 60bfc6ee49
14 changed files with 30 additions and 30 deletions

View file

@ -8,14 +8,14 @@
],
"properties": {
"borrowed": {
"$ref": "#/definitions/OS_String"
"$ref": "#/definitions/OsString"
},
"owned": {
"$ref": "#/definitions/OS_String"
"$ref": "#/definitions/OsString"
}
},
"definitions": {
"OS_String": {
"OsString": {
"oneOf": [
{
"type": "object",

View file

@ -8,14 +8,14 @@
],
"properties": {
"inclusive": {
"$ref": "#/definitions/Range_Of_double"
"$ref": "#/definitions/Range_of_double"
},
"range": {
"$ref": "#/definitions/Range_Of_uint"
"$ref": "#/definitions/Range_of_uint"
}
},
"definitions": {
"Range_Of_double": {
"Range_of_double": {
"type": "object",
"required": [
"end",
@ -32,7 +32,7 @@
}
}
},
"Range_Of_uint": {
"Range_of_uint": {
"type": "object",
"required": [
"end",

View file

@ -8,10 +8,10 @@
],
"properties": {
"result1": {
"$ref": "#/definitions/Result_Of_MyStruct_Or_Array_Of_String"
"$ref": "#/definitions/Result_of_MyStruct_or_Array_of_String"
},
"result2": {
"$ref": "#/definitions/Result_Of_Boolean_Or_Null"
"$ref": "#/definitions/Result_of_Boolean_or_Null"
}
},
"definitions": {
@ -27,7 +27,7 @@
}
}
},
"Result_Of_Boolean_Or_Null": {
"Result_of_Boolean_or_Null": {
"oneOf": [
{
"type": "object",
@ -53,7 +53,7 @@
}
]
},
"Result_Of_MyStruct_Or_Array_Of_String": {
"Result_of_MyStruct_or_Array_of_String": {
"oneOf": [
{
"type": "object",

View file

@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "a-new-name-Array_Of_String-int32-int32",
"title": "a-new-name-Array_of_String-int32-int32",
"type": "object",
"required": [
"inner",

View file

@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MyStruct_For_int32_And_Null_And_Boolean_And_Array_Of_String",
"title": "MyStruct_for_int32_and_Null_and_Boolean_and_Array_of_String",
"type": "object",
"required": [
"inner",

View file

@ -136,7 +136,7 @@
"items": {
"anyOf": [
{
"$ref": "#/definitions/SingleOrVec_For_Schema"
"$ref": "#/definitions/SingleOrVec_for_Schema"
},
{
"type": "null"
@ -281,7 +281,7 @@
"type": {
"anyOf": [
{
"$ref": "#/definitions/SingleOrVec_For_InstanceType"
"$ref": "#/definitions/SingleOrVec_for_InstanceType"
},
{
"type": "null"
@ -445,7 +445,7 @@
"items": {
"anyOf": [
{
"$ref": "#/definitions/SingleOrVec_For_Schema"
"$ref": "#/definitions/SingleOrVec_for_Schema"
},
{
"type": "null"
@ -590,7 +590,7 @@
"type": {
"anyOf": [
{
"$ref": "#/definitions/SingleOrVec_For_InstanceType"
"$ref": "#/definitions/SingleOrVec_for_InstanceType"
},
{
"type": "null"
@ -609,7 +609,7 @@
},
"additionalProperties": true
},
"SingleOrVec_For_InstanceType": {
"SingleOrVec_for_InstanceType": {
"anyOf": [
{
"$ref": "#/definitions/InstanceType"
@ -622,7 +622,7 @@
}
]
},
"SingleOrVec_For_Schema": {
"SingleOrVec_for_Schema": {
"anyOf": [
{
"$ref": "#/definitions/Schema"