Skip to content

Fix up overture-schema-sources - #394

Merged
Victor Schappert (vcschapp) merged 1 commit into
pydanticfrom
pydantic-sources-fixup
Oct 3, 2025
Merged

Fix up overture-schema-sources#394
Victor Schappert (vcschapp) merged 1 commit into
pydanticfrom
pydantic-sources-fixup

Conversation

@sethfitz

Copy link
Copy Markdown
Collaborator
  • add support for models without a type field to the dynamic union generator in overture.schema:parse; it now produces <discriminated union of models with 'type'> | <regular union of models without 'type'> to maintain performance while adding flexibility for peripheral Overture models
  • remove non-existent PatternPropertiesDictConstraint in favor of json_schema_extra= kwarg
  • remove deprecated format kwargs (redundant with HttpUri)
  • avoid transforming non-Features to GeoJSON
  • add missing typing information
  • align YAML formatting with existing examples
  • add missing baseline sources JSON Schema

- add support for models without a `type` field to the dynamic union
  generator in `overture.schema:parse`; it now produces `<discriminated
  union of models with 'type'> | <regular union of models without
  'type'>` to maintain performance while adding flexibility for
  peripheral Overture models
- remove non-existent `PatternPropertiesDictConstraint` in favor of
  `json_schema_extra=` kwarg
- remove deprecated `format` kwargs (redundant with `HttpUri`)
- avoid transforming non-Features to GeoJSON
- add missing typing information
- align YAML formatting with existing examples
- add missing baseline sources JSON Schema
@vcschapp
Victor Schappert (vcschapp) merged commit 3956375 into pydantic Oct 3, 2025
3 checks passed
@vcschapp
Victor Schappert (vcschapp) deleted the pydantic-sources-fixup branch October 3, 2025 20:29
Victor Schappert (vcschapp) added a commit that referenced this pull request Oct 3, 2025
This commit used to move "sources" out of the way for now, but that's
over now after rebasing on Seth's #394.
Victor Schappert (vcschapp) added a commit that referenced this pull request Oct 3, 2025
This commit used to move "sources" out of the way for now, but that's
over now after rebasing on Seth's #394.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants