diff --git a/content/docs/specifications/table-schema.md b/content/docs/specifications/table-schema.md index ec9fb055..bb6ba89f 100644 --- a/content/docs/specifications/table-schema.md +++ b/content/docs/specifications/table-schema.md @@ -491,6 +491,34 @@ properties. As for minimum, but specifies a maximum value for a field. + + + exclusiveMinimum + + + integer, number, date, time, datetime, duration, year, yearmonth + + + integer, number, date, time, datetime, duration, year, yearmonth + + + As for minimum, but for expressing exclusive range. + + + + + exclusiveMaximum + + + integer, number, date, time, datetime, duration, year, yearmonth + + + integer, number, date, time, datetime, duration, year, yearmonth + + + As for maximum, but for expressing exclusive range. + + pattern diff --git a/profiles/dictionary/schema.yaml b/profiles/dictionary/schema.yaml index a93e5ce8..46e3871c 100644 --- a/profiles/dictionary/schema.yaml +++ b/profiles/dictionary/schema.yaml @@ -399,6 +399,14 @@ tableSchemaFieldInteger: oneOf: - "$ref": "#/definitions/tableSchemaConstraintMaximumString" - "$ref": "#/definitions/tableSchemaConstraintMaximumInteger" + exclusiveMinimum: + oneOf: + - "$ref": "#/definitions/tableSchemaConstraintMinimumString" + - "$ref": "#/definitions/tableSchemaConstraintMinimumInteger" + exclusiveMaximum: + oneOf: + - "$ref": "#/definitions/tableSchemaConstraintMaximumString" + - "$ref": "#/definitions/tableSchemaConstraintMaximumInteger" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -479,6 +487,14 @@ tableSchemaFieldNumber: oneOf: - "$ref": "#/definitions/tableSchemaConstraintMaximumString" - "$ref": "#/definitions/tableSchemaConstraintMaximumNumber" + exclusiveMinimum: + oneOf: + - "$ref": "#/definitions/tableSchemaConstraintMinimumString" + - "$ref": "#/definitions/tableSchemaConstraintMinimumNumber" + exclusiveMaximum: + oneOf: + - "$ref": "#/definitions/tableSchemaConstraintMaximumString" + - "$ref": "#/definitions/tableSchemaConstraintMaximumNumber" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -538,6 +554,10 @@ tableSchemaFieldDate: "$ref": "#/definitions/tableSchemaConstraintMinimumString" maximum: "$ref": "#/definitions/tableSchemaConstraintMaximumString" + exclusiveMinimum: + "$ref": "#/definitions/tableSchemaConstraintMinimumString" + exclusiveMaximum: + "$ref": "#/definitions/tableSchemaConstraintMaximumString" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -603,6 +623,10 @@ tableSchemaFieldTime: "$ref": "#/definitions/tableSchemaConstraintMinimumString" maximum: "$ref": "#/definitions/tableSchemaConstraintMaximumString" + exclusiveMinimum: + "$ref": "#/definitions/tableSchemaConstraintMinimumString" + exclusiveMaximum: + "$ref": "#/definitions/tableSchemaConstraintMaximumString" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -660,6 +684,10 @@ tableSchemaFieldDateTime: "$ref": "#/definitions/tableSchemaConstraintMinimumString" maximum: "$ref": "#/definitions/tableSchemaConstraintMaximumString" + exclusiveMinimum: + "$ref": "#/definitions/tableSchemaConstraintMinimumString" + exclusiveMaximum: + "$ref": "#/definitions/tableSchemaConstraintMaximumString" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -721,6 +749,14 @@ tableSchemaFieldYear: oneOf: - "$ref": "#/definitions/tableSchemaConstraintMaximumString" - "$ref": "#/definitions/tableSchemaConstraintMaximumInteger" + exclusiveMinimum: + oneOf: + - "$ref": "#/definitions/tableSchemaConstraintMinimumString" + - "$ref": "#/definitions/tableSchemaConstraintMinimumInteger" + exclusiveMaximum: + oneOf: + - "$ref": "#/definitions/tableSchemaConstraintMaximumString" + - "$ref": "#/definitions/tableSchemaConstraintMaximumInteger" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -779,6 +815,10 @@ tableSchemaFieldYearMonth: "$ref": "#/definitions/tableSchemaConstraintMinimumString" maximum: "$ref": "#/definitions/tableSchemaConstraintMaximumString" + exclusiveMinimum: + "$ref": "#/definitions/tableSchemaConstraintMinimumString" + exclusiveMaximum: + "$ref": "#/definitions/tableSchemaConstraintMaximumString" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: @@ -838,6 +878,10 @@ tableSchemaFieldDuration: "$ref": "#/definitions/tableSchemaConstraintMinimumString" maximum: "$ref": "#/definitions/tableSchemaConstraintMaximumString" + exclusiveMinimum: + "$ref": "#/definitions/tableSchemaConstraintMinimumString" + exclusiveMaximum: + "$ref": "#/definitions/tableSchemaConstraintMaximumString" rdfType: "$ref": "#/definitions/tableSchemaRdfType" examples: