Skip to content

Commit

Permalink
Create schema2.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ authored Oct 23, 2024
1 parent 78daae6 commit 3ad969c
Showing 1 changed file with 232 additions and 0 deletions.
232 changes: 232 additions & 0 deletions samples/schema2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"code-generation": {
"$ref": "#/definitions/CodeGeneration"
},
"tables": {
"type": "array",
"items": {
"$ref": "#/definitions/Table"
}
},
"views": {
"type": "array",
"items": {
"$ref": "#/definitions/View"
}
},
"stored-procedures": {
"type": "array",
"items": {
"$ref": "#/definitions/StoredProcedure"
}
},
"functions": {
"type": "array",
"items": {
"$ref": "#/definitions/Function"
}
},
"names": {
"$ref": "#/definitions/Names"
},
"file-layout": {
"$ref": "#/definitions/FileLayout"
},
"replacements": {
"$ref": "#/definitions/Replacements"
},
"type-mappings": {
"$ref": "#/definitions/TypeMappings"
}
},
"definitions": {
"Table": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"exclude": {
"type": "boolean"
}
}
},
"View": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"StoredProcedure": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"use-legacy-resultset-discovery": {
"type": "boolean"
},
"mapped-type": {
"type": "string"
}
}
},
"Function": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"CodeGeneration": {
"type": "object",
"properties": {
"enable-on-configuring": {
"type": "boolean"
},
"type": {
"default": "all",
"enum": [ "all", "dbcontext", "entities" ],
"type": "string"
},
"use-database-names": {
"type": "boolean"
},
"use-data-annotations": {
"type": "boolean"
},
"use-nullable-reference-types": {
"type": "boolean"
},
"use-inflector": {
"type": "boolean",
"default": true
},
"use-legacy-inflector": {
"type": "boolean"
},
"use-many-to-many-entity": {
"type": "boolean"
},
"use-t4": {
"type": "boolean"
},
"remove-defaultsql-from-bool-properties": {
"type": "boolean"
},
"soft-delete-obsolete-files": {
"type": "boolean"
},
"discover-multiple-stored-procedure-resultsets-preview": {
"type": "boolean"
},
"use-alternate-stored-procedure-resultset-discovery": {
"type": "boolean"
},
"t4-template-path": {
"type": [ "string", "null" ]
},
"use-no-navigations-preview": {
"type": "boolean"
},
"merge-dacpacs": {
"type": "boolean"
},
"refresh-object-lists": {
"type": "boolean",
"default": true
},
"generate-mermaid-diagram": {
"type": "boolean"
},
"use-decimal-data-annotation-for-sproc-results" {
"type": "boolean",
"default": true
},
"use-prefix-navigation-naming" {
"type": "boolean"
}
}
},
"Names": {
"type": "object",
"properties": {
"root-namespace": {
"type": "string"
},
"dbcontext-name": {
"type": "string"
},
"dbcontext-namespace": {
"type": "string"
},
"model-namespace": {
"type": "string"
}
}
},
"FileLayout": {
"type": "object",
"properties": {
"output-path": {
"type": "string"
},
"output-dbcontext-path": {
"type": "string"
},
"split-dbcontext-preview": {
"type": "boolean"
},
"use-schema-folders-preview": {
"type": "boolean"
},
"use-schema-namespaces-preview": {
"type": "boolean"
}
}
},
"TypeMappings": {
"type": "object",
"properties": {
"use-DateOnly-TimeOnly": {
"type": "boolean"
},
"use-HierarchyId": {
"type": "boolean"
},
"use-spatial": {
"type": "boolean"
},
"use-NodaTime": {
"type": "boolean"
}
}
},
"Replacements": {
"type": "object",
"properties": {
"preserve-casing-with-regex": {
"type": "boolean"
},
"uncountable-words": {
"type": "array",
"items": {
"$ref": "#/definitions/UncountableWord"
}
}
}
},
"UncountableWord": {
"type": "string"
}
}
}

0 comments on commit 3ad969c

Please sign in to comment.