Skip to content

Releases: OCXStandard/ocx-schema-parser

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 07 Sep 10:42

bump to v3.1.0

Added

  • summary CLI command: entity counts (elements, complex types, simple types,
    global attributes, attribute groups) grouped by target namespace.
  • list <kind> --name prefix:name (case-insensitive): prints the entity's
    documentation plus tabular listings of its attributes and children.

Changed

  • DEFAULT_SCHEMA bumped to the V320 schema URL.
  • Exported complex_types now include all named complex types; previously
    types used as the type of a global element were omitted.

Fixed

  • Enumerations declared as anonymous simple types on global attributes
    (e.g. ocx:liquidCargoType, ocx:grade) are now resolved and listed.
  • Inline attribute enumerations declared on local attributes inside
    xsd:attributeGroups or complex types (e.g. unitsml:prefix,
    unitsml:unit) are now synthesized as EnumTypes too; previously only
    global attributes were scanned.
  • Attributes carrying an inline enumeration now resolve their type to the
    synthesized enum's prefixed name (e.g. Bracket.functionType →
    ocx:functionType, EnumeratedRootUnit.prefix → unitsml:prefix)
    instead of the restriction base type, so consumers can link attributes to
    their enumerations.

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Aug 13:34

bump to v3.0.0

Changed

  • Complete rewrite: XSD parsing is now delegated to xsdata's SchemaParser,
    and the parsed schema is resolved into a typed, frozen Pydantic v2 model
    (OcxSchema) that serializes to JSON.
  • New public API: load(source), resolve(schemas), and the model classes.
  • New ocx-schema-parser export CLI.

Removed

  • BREAKING: OcxParser, Transformer, LxmlParser, LxmlElement,
    SchemaHelper, OcxGlobalElement, the data_classes module, the utils
    package and the ocxdownloader sub-package (SchemaDownloader moved to
    ocx_schema_parser.downloader).
  • Dependencies ocx-common, pyspellchecker and pyyaml.

v1.8.0

Choose a tag to compare

@ocastrup ocastrup released this 06 Dec 15:34

Bugfix

v1.7.0

Choose a tag to compare

@ocastrup ocastrup released this 11 Mar 09:52

Downgrade to Python 3.10

v1.4.0

Choose a tag to compare

@ocastrup ocastrup released this 29 Nov 11:52

Removed unnecessary dependencise
Upgraded to Python 3.11

v1.3.1

Choose a tag to compare

@ocastrup ocastrup released this 28 Sep 10:40

No API chanages. Automatic deployment to PyPi using GitHub actions

v1.2.0

Choose a tag to compare

@ocastrup ocastrup released this 28 Sep 10:10

Code reformatting and linting

v1.0.1

Choose a tag to compare

@ocastrup ocastrup released this 28 Sep 08:38

Code formatting and linting.

v1.0.0

Choose a tag to compare

@ocastrup ocastrup released this 27 Sep 11:27

Fix missing substitution groups

v0.2.0

Choose a tag to compare

@ocastrup ocastrup released this 06 Feb 14:50