Repository navigation
Releases: OCXStandard/ocx-schema-parser
Releases · OCXStandard/ocx-schema-parser
Release list
v3.1.0
bump to v3.1.0
Added
summaryCLI 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_SCHEMAbumped to the V320 schema URL.- Exported
complex_typesnow 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 asEnumTypes too; previously only
global attributes were scanned. - Attributes carrying an inline enumeration now resolve their
typeto 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
bump to v3.0.0
Changed
- Complete rewrite: XSD parsing is now delegated to
xsdata'sSchemaParser,
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 exportCLI.
Removed
- BREAKING:
OcxParser,Transformer,LxmlParser,LxmlElement,
SchemaHelper,OcxGlobalElement, thedata_classesmodule, theutils
package and theocxdownloadersub-package (SchemaDownloadermoved to
ocx_schema_parser.downloader). - Dependencies
ocx-common,pyspellcheckerandpyyaml.
v1.8.0
v1.7.0
v1.4.0
v1.3.1
v1.2.0
v1.0.1
v1.0.0
v0.2.0
First release
Full Changelog: https://github.com/OCXStandard/ocx-schema-parser/commits/v0.2.0