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

Implement Validator class for Integrations #1464

Closed
wants to merge 29 commits into from

Conversation

Swiddis
Copy link
Collaborator

@Swiddis Swiddis commented Mar 9, 2023

Description

In preparation for implementing the integration validation, a validator that can ingest and process a schema needs to be implemented. This PR implements the Validator class that can be constructed from any of the current System Schema objects.

The tests for Validator also implement automatically checking sample json against their schemas at the unit test level, which will make API development more robust moving forward.

Future work:

  • Endpoint for Integration Validation (issue pending)
  • Make the class more robust with more schema support (issue pending)

Checklist before updating from Draft:

  • TODO in validation/IntegrationComponent.kt; I'm not sure what the best way to safely use relative paths in Kotlin is, open to suggestions.
    • Since there are unit tests that make sure this is set up right, it can also be deferred to properly resolving later. Marking as done.
  • Usage documentation

Issues Resolved

Part of work on #1443

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@YANG-DB YANG-DB added enhancement New feature or request v2.7.0 integration Integration project labels Mar 9, 2023
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis Swiddis marked this pull request as ready for review March 10, 2023 17:53
@Swiddis Swiddis requested a review from a team as a code owner March 10, 2023 17:53
@Swiddis Swiddis requested a review from YANG-DB March 10, 2023 18:02
@Swiddis Swiddis self-assigned this Mar 14, 2023
YANG-DB
YANG-DB previously approved these changes Mar 14, 2023
@YANG-DB YANG-DB added this to the 2.7 milestone Mar 14, 2023
build.gradle Show resolved Hide resolved
@Swiddis Swiddis requested a review from ps48 March 17, 2023 17:12
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis Swiddis mentioned this pull request Mar 28, 2023
6 tasks
@Swiddis
Copy link
Collaborator Author

Swiddis commented Mar 28, 2023

Needs refactoring for compatibility #1482, don't merge yet.
Done

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis Swiddis requested a review from YANG-DB March 29, 2023 21:02
@Swiddis
Copy link
Collaborator Author

Swiddis commented Mar 29, 2023

Depends on #1482

YANG-DB
YANG-DB previously approved these changes Mar 29, 2023
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Swiddis and others added 4 commits March 29, 2023 17:16
Signed-off-by: Simeon Widdis <sawiddis@gmail.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
@Swiddis
Copy link
Collaborator Author

Swiddis commented Mar 30, 2023

Moved to #1486

@Swiddis Swiddis closed this Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integration Integration project v2.7.0
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants