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 v2 Spec JSON Schema #6

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Implement v2 Spec JSON Schema #6

merged 1 commit into from
Jul 30, 2024

Conversation

theory
Copy link
Member

@theory theory commented Jul 19, 2024

Based on pgxn/rfcs#3. As with the v1 schemas, use JSON Schema v2020 for the v2 schemas.

Fix a few minor issues with the v1 schema, as well. Add full test suite in Rust; move code shared between the v1 and v2 tests to tests/common/mod.rs. This includes custom format functions not required for v1, including spdx version expression validation with the spdx crate, and path validation to ensure no .. is included in paths.

Based on pgxn/rfcs#3. As with the v1 schemas, use JSON Schema v2020 for
the v2 schemas.

Fix a few minor issues with the v1 schema, as well. Add full test suite
in Rust; move code shared between the v1 and v2 tests to
`tests/common/mod.rs`. This includes custom format functions not
required for v1, including spdx version expression validation with the
`spdx` crate, and path validation to ensure no `..` is included in
paths.
@theory theory changed the title V2 dev Implement v2 Spec JSON Schema Jul 24, 2024
@theory theory mentioned this pull request Jul 2, 2024
5 tasks
@theory theory merged commit fbd591d into main Jul 30, 2024
10 checks passed
@theory theory deleted the v2-dev branch July 30, 2024 20:11
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