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

fix: better type for Responses policyRef #67

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

jessicamcinchak
Copy link
Member

  • url is proper URL type, rather than string
  • text is always required if policyRef is available (might be case for url too once examples are updated? but not sure this is actually a planx content requirement!)

@DafyddLlyr
Copy link
Contributor

DafyddLlyr commented Nov 7, 2023

I think that currently the "Policy Reference" field is just a rich text field - so it will always have text (or be undefined), but making this a link is not enforced in the Editor.

@jessicamcinchak jessicamcinchak merged commit 05fe2df into main Nov 8, 2023
3 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/policyRef-url-type branch November 8, 2023 08:02
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