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

Allow examples with only mandatory keys to be generated based on a flag #1384

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

yogeshnikam671
Copy link
Member

@yogeshnikam671 yogeshnikam671 commented Oct 25, 2024

To allow only mandatory keys, we can start the examples interactive server using the command -

specmatic examples interactive --allow-only-mandatory-keys-in-json=true --contract-file=api.yaml

To disable the same -

specmatic examples interactive --allow-only-mandatory-keys-in-json=false --contract-file=api.yaml
  • Tests

@joelrosario joelrosario merged commit 61e1667 into main Oct 25, 2024
2 checks passed
@joelrosario joelrosario deleted the only_mandatory_attributes_in_examples branch October 25, 2024 11:59
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.

2 participants