metaschema-java

Java tools and libraries providing a Metaschema toolchain

OTHER License

Stars
11

Bot releases are hidden (Show)

metaschema-java - v0.12.2

Published by david-waltermire-nist about 1 year ago

New and Notable

This is a patch release to fix a defect causing data type references to be omitted for attributes in XML Schema generated using the schema generation function of this library.

The core repository documentation has been updated, which includes information on the testing approach used by this project.

What's Changed

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.12.1...v0.12.2

Download

This release is on Maven Central.

metaschema-java - v0.12.1

Published by david-waltermire-nist about 1 year ago

New and Notable

This patch release was made to fix a build pipeline problem. It is functionally the same as the v0.12.0 release.

What's Changed

This patch release changed no Java code.

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.12.0...v0.12.1

Download

This release is on Maven Central.

metaschema-java - v0.12.0

Published by david-waltermire-nist over 1 year ago

New and Notable

  • In v0.11.0 SnakeYAML was upgraded to a newer version that restricted the maximum codepoints read to 3MB. This release increases this value to 2GB and allows this limit to be set to a different value using the DeserializationFeature.YAML_CODEPOINT_LIMIT.
  • Support was added for Metaschema-based content validation using an arbitrary Metaschema in the CLI using the validate-content command. This command requires a -m argument pointing to the Metaschema to use. It automatically compiles the binding classes and generates the appropriate XML or JSON schema for content validation.

What's Changed

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.11.0...v0.12.0

Download

This release is on Maven Central.

metaschema-java - v0.11.0

Published by david-waltermire-nist over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.10.0...v0.11.0

Download

This release is on Maven Central.

metaschema-java - v0.10.0

Published by david-waltermire-nist almost 2 years ago

What's Changed

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.9.0...v0.10.0

Download

This release is on Maven Central.

metaschema-java - v0.9.0

Published by david-waltermire-nist about 2 years ago

What's Changed

  • Fixed allowed values behavior during validation by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/74
    • Refactored IConstraintValidator API to avoid misuse by calling the previous validate methods directly, instead of the visitor method.
    • Fixed allowed values validation logic preventing constraint sets allowing other values to fail. Fixes https://github.com/usnistgov/metaschema-java/issues/76.
  • Documentation improvements by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/86
    • Updating to latest metaschema schema.
    • Renamed IBoundNamedModelDefinition to IBoundModelDefinition.
    • Renamed INamedDefinitionTypeInfo to IDefinitionTypeInfo.
    • Renamed INamedModelDefinitionTypeInfo to IModelDefinitionTypeInfo.
    • Renamed IInlineNamedDefinition to IInlineDefinition.
    • Renamed INamedModelDefinition to IModelDefinition.
    • Removed INamedValuedDefinition; using IValuedDefinition instead.
    • Removing INamedDefinition; using IDefinition instead.
    • Added support for arbitrary properties in a Metaschema definition or instance.
    • Added support for formal-name and description.
    • Addressed cycle handling in Metapath evaluation against models with definition cycles.
    • Started work on reference documentation generation.
  • Setup spotbugs by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/92
  • Support for default values and some additional fixes by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/100
    • Added support for default values in the core Metaschema models, including the XML and bound Java object implementations.
    • Refactored binding annotations to provide a more maintainable implementation.
    • Cleaned up and moved some Metaschema data type classes.
    • Fixed a bug causing binding errors for fields that are not bound on a bound class.
    • Fixed a defect in generating assembly constraints.
    • Added method to iterate over an ISequence
    • Refactored build to eliminate extraneous dependencies.
  • Refactoring index constraints by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/102
    • Refactored index constraints to use the new IIndex class. This will help in the future with further enhancements around use of indexes.
    • Added and integrated a ConstraintValidationFinding builder for generating new findings.
    • Improved error handling to emit validation errors instead of exceptions. This will result in the reporting of index lookup misses as findings.

Dependency Changes

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.8.1...v0.9.0

Download

This release is on Maven Central.

metaschema-java - v0.8.1

Published by david-waltermire-nist over 2 years ago

What's Changed

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.8.0...v0.8.1

Download

This release is on Maven Central.

metaschema-java - v0.8.0

Published by david-waltermire-nist over 2 years ago

What's Changed

Dependencies

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.7.0...v0.8.0

Download

This release is on Maven Central.

metaschema-java - v0.7.0

Published by david-waltermire-nist over 2 years ago

What's Changed

  • Add schema generation support by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/25
  • Add support for add/remove collection operations by @david-waltermire-nist in https://github.com/usnistgov/metaschema-java/pull/27
  • Parsing and writing speed improvements for JSON and YAML.
  • Implemented JSON schema generation. Resolves https://github.com/usnistgov/OSCAL/issues/1145. Resolves https://github.com/usnistgov/OSCAL/issues/1132. Resolves https://github.com/usnistgov/OSCAL/issues/1131. Resolves https://github.com/usnistgov/OSCAL/issues/1003.
  • Worked out unicode support for JSON and XSD. Resolves https://github.com/usnistgov/OSCAL/issues/1127. Resolves https://github.com/usnistgov/OSCAL/issues/956.
  • Fixed bugs in DateAdapter causing dates without timezones to not parse or write properly.
  • Refactored and moved validation API to metaschema-model-common.
  • Fixed a bug in write operations causing some file contents to not be truncated when overwriting files. Added StandardOpenOption.TRUNCATE_EXISTING to write operations.
  • Fixed a bug in array writing for properties using in-json=ARRAY or SINGLETON_OR_ARRAY, that caused an error related to the closing array syntax.
  • Refactored Java class generation to provide more information to the caller about generated classes.
  • Added dynamic test support for Metaschema-based testing in a new module metaschema-testing.
  • Updated JSON parsing code to be more resilient.
  • Updated to new metaschema feature branch for major refactor.
  • Fixed some compiler, PMD, and checkstyle warnings. Making incremental progress towards getting these cleaned up.
  • Simplified and removed some unneeded interfaces and abstract classes. Reducing public/protected classes and methods.
  • Fixed bugs around inline type handling in schema generation.
  • Migrated the metaschema-java-binding-annotations module sources to metaschema-java-binding.
  • Completed full support for Metaschema information in bound Java classes.
  • Refactored Metapath function library, adding functions for abs, boolean, ceiling, compare, data, floor, and round. Identified all functions that need to be implemented eventually.
  • Added some Javadocs.
  • Fixing relative path in POM causing build errors in CI.

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.6.0...v0.7.0

Download

This release is on Maven Central.

metaschema-java - v0.6.0

Published by david-waltermire-nist over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/usnistgov/metaschema-java/compare/v0.5.0...v0.6.0

Download

This release is on Maven Central.

metaschema-java - Metaschema Java Support v0.4.0

Published by david-waltermire-nist over 3 years ago

This release of the Metaschema Java utilities is based on the Milestone 4 (M4) version of the NIST Metaschema project. Java artifacts have been released to Maven Central.