Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Updated boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Apr 3, 2024
1 parent 285aad7 commit d7466ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 4 additions & 8 deletions content/docs/specifications/table-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,18 +427,14 @@ Integer values are indicated in the standard way for any valid integer. Formatti

### `boolean`

The field contains boolean (true/false) data.
The field contains boolean data i.e. logical `true` or logical `false`.

**Native Representaiton**

If supported, values `MUST` be natively represented by a data format. If not supported, values `MUST` be represented as strings following the rules below.

The values set in `trueValues` and `falseValues` are to be cast to their logical representation as booleans. `trueValues` and `falseValues` are arrays which can be customised to user need. The default values for these are in the additional properties section below.

The boolean field can be customised with these additional properties:
If supported, values `MUST` be natively represented by a data format. If not supported, values `MUST` be represented as defined by the `trueValues` and `falseValues` properties that can be customized to user need:

- **trueValues**: `[ "true", "True", "TRUE", "1" ]`
- **falseValues**: `[ "false", "False", "FALSE", "0" ]`
- **trueValues**: An array of native values to be interpreted as logical `true`. The default is `[ "true", "True", "TRUE", "1" ]`.
- **falseValues**: An array of native values to be interpreted as logical `false`. The default is `[ "false", "False", "FALSE", "0" ]`.

### `object`

Expand Down
4 changes: 0 additions & 4 deletions profiles/dictionary/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,10 @@ tableSchemaForeignKey:
tableSchemaTrueValues:
type: array
minItems: 1
items:
type: string
default: ["true", "True", "TRUE", "1"]
tableSchemaFalseValues:
type: array
minItems: 1
items:
type: string
default: ["false", "False", "FALSE", "0"]
tableSchemaMissingValues:
type: array
Expand Down

0 comments on commit d7466ff

Please sign in to comment.