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

Correct issue in appd details field's schema, error in example and improve test #1034

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

kriswest
Copy link
Contributor

resolves #1033

  • the details field of the appD schema is using oneOf to combine subschemas
    • However, this requires them to be distinct and non-overlapping, they are not (both web and online native have a url property).
    • anyOf should be used in this situation instead as oneOf returns validation errors when the element conforms to multiple subschemas.
  • commas were removed from email fields in the fdc3-workbench example as these fail validation (just a syntax error in the YAML file)
  • The test was improved by adding multiple examples and providing better console output from it.

…prove test

- the details field of the appD schema is using `oneOf` to combine subschemas, however, this requires them to be distinct and non-verlapping. This should be `anyOf` instead as this prevents validation errors when the element conforms to multiple subschemas.
- commas were removed from email fields in the fdc3-workbench example as these fail validation
- The test was improved by adding multiple examples and providing better output from it.
@kriswest kriswest requested review from a team July 24, 2023 12:19
@netlify
Copy link

netlify bot commented Jul 24, 2023

Deploy Preview for fdc3 ready!

Name Link
🔨 Latest commit 01f9c6d
🔍 Latest deploy log https://app.netlify.com/sites/fdc3/deploys/64be6eba66162400086abd0a
😎 Deploy Preview https://deploy-preview-1034--fdc3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kriswest kriswest marked this pull request as ready for review July 24, 2023 12:45
Copy link
Contributor

@mattjamieson mattjamieson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@WatsonCIQ
Copy link
Contributor

Fixed my issue! 👍

@kriswest kriswest merged commit 51ab6ec into finos:master Jul 25, 2023
10 checks passed
@kriswest kriswest deleted the 1033-correct-appd-schema-error branch July 25, 2023 10:05
@kriswest kriswest mentioned this pull request Jul 25, 2023
14 tasks
@bingenito bingenito mentioned this pull request Nov 6, 2023
27 tasks
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.

App Directory schema contains errors
4 participants