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

Default datatype values #147

Merged
merged 4 commits into from
May 31, 2023
Merged

Conversation

timothee-haudebourg
Copy link
Collaborator

@timothee-haudebourg timothee-haudebourg commented May 26, 2023

This PR implement the concept of default values for datatypes. This relates to the default keyword found in JSON Schema or Lexicon.

  • Define a tldr:defaultValue property.
  • Add datatype default values in the core data model.
  • Implement default values in the build data model.
  • JSON Schema default keyword support (for datatypes).
  • Lexicon default keyword support.
  • Generate Rust code for default values.
  • Testing

@timothee-haudebourg timothee-haudebourg linked an issue May 26, 2023 that may be closed by this pull request
@timothee-haudebourg timothee-haudebourg marked this pull request as ready for review May 31, 2023 12:13
Import `default` value from Lexicon docs.
@timothee-haudebourg timothee-haudebourg merged commit daecda3 into main May 31, 2023
6 checks passed
@timothee-haudebourg timothee-haudebourg deleted the timothee-haudebourg/issue146 branch May 31, 2023 12:22
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.

Default datatype value
1 participant