Skip to content

Commit

Permalink
Document schema overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 27, 2024
1 parent b2a821d commit a53588e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,21 @@ If a column has multiple jsonschema types, the following order is using to order
- BOOLEAN
- NOTYPE

### Using the Singer catalog to narrow down the Postgres data types

You can use [Singer catalog's schema](https://github.com/singer-io/getting-started/blob/master/docs/DISCOVERY_MODE.md#schemas) to override the data types coming from the tap. The easiest way to do this is to use Meltano and its [schema setting](https://docs.meltano.com/concepts/plugins/#schema-extra) for the tap:

```yaml
# meltano.yml
plugins:
extractors:
- name: tap-my-tap
schema:
my_column:
type: integer
maximum: 1000 # This will be mapped to 'smallint'
```

## Content Encoding Support

Json Schema supports the [`contentEncoding` keyword](https://datatracker.ietf.org/doc/html/rfc4648#section-8), which can be used to specify the encoding of input string types.
Expand Down

0 comments on commit a53588e

Please sign in to comment.