Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,6 @@
}
}
},
{
"properties": {
"callable": {
"const": "postcode"
},
"constraints": {
"$ref": "type_constraints/postcode.schema.json"
}
}
},
{
"properties": {
"callable": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"type": "object",
"properties": {
"reader": {
"const": "DuckDBXMLReader"
"const": "DuckDBXMLStreamReader"
},
"kwargs": {
"$ref": "reader_constraints/ddb_xml_reader.schema.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"type": "object",
"properties": {
"field_check": {
"type": "boolean",
"description": "Enable to check for additional or missing fields."
"type": "string",
"description": "Enable to check for additional or missing fields.",
"enum": [
"true",
"false"
]
},
"field_check_error_code": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,35 @@
"$id": "data-ingest:contract/components/type_name.schema.json",
"title": "type_name",
"description": "The name of an allowed type within data ingest. This should be a Python type",
"type": "string",
"enum": [
"str",
"int",
"float",
"date",
"datetime",
"constr",
"conint",
"condate",
"condecimal",
"postcode",
"nhsnumber",
"permissivenhsno",
"alphanumeric",
"identifier",
"orgid",
"formatteddatetime",
"formattedtime",
"conformatteddate",
"reportingperiodstart",
"reportingperiodend"
]
"oneOf": [
{
"enum": [
"str",
"int",
"float",
"date",
"datetime",
"constr",
"conint",
"condate",
"condecimal",
"postcode",
"nhsnumber",
"permissivenhsno",
"alphanumeric",
"identifier",
"orgid",
"formatteddatetime",
"formattedtime",
"conformatteddate",
"reportingperiodstart",
"reportingperiodend"
]
},
{
"type": "string",
"pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$"
}
],
"minLength": 1
}
Loading