Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema generation support #25

Merged
merged 12 commits into from
Apr 15, 2022

Conversation

david-waltermire
Copy link
Collaborator

Committer Notes

This PR adds schema generation support to the Java Metaschema framework.

This PR also cleans up a bunch of PMD and checkstyle issues and involved refactoring code to reduce interfaces and class hierarchy complexity.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you squashed any non-relevant commits and commit messages? [instructions]
  • Do all automated CI/CD checks pass?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you included examples of how to use your new feature(s)?
  • Have you updated all website](https://pages.nist.gov/metaschema) and readme documentation affected by the changes you made? Changes to the website can be made in the website/content directory of your branch.

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 based on a Metaschema 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.
Fixed some compiler, PMD, and checkstyle warnings. Making incremental progress on getting these cleaned up.
Migrated the metaschema-java-binding-annotations module sources to metaschema-java-binding.
Completed full support for Metaschema information in bound Java classes.
Refactored function library, adding functions for abs, boolean, ceiling, compare, data, floor, and round. Identified all functions that need to be implemented eventually.
@david-waltermire david-waltermire merged commit ee9dcc4 into usnistgov:main Apr 15, 2022
david-waltermire pushed a commit to GSA/metaschema-java that referenced this pull request May 28, 2024
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9bb5618...44c2b7a)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant