-
Notifications
You must be signed in to change notification settings - Fork 2
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 Type parsing #6
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
danini-the-panini
force-pushed
the
ds-parse-types
branch
2 times, most recently
from
October 22, 2021 09:36
a0504f8
to
e8176d2
Compare
danini-the-panini
force-pushed
the
ds-parse-types
branch
from
November 1, 2021 11:55
8e5debf
to
675a652
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://github.com/kdl-org/kdl/blob/main/SPEC.md#type-annotation
date-time
: ISO8601 date/time format.time
: "Time" section of ISO8601.date
: "Date" section of ISO8601.duration
: ISO8601 duration format.decimal
: IEEE 754-2008 decimal string format.currency
: ISO 4217 currency code.country-2
: ISO 3166-1 alpha-2 country code.country-3
: ISO 3166-1 alpha-3 country code.country-subdivision
: ISO 3166-2 country subdivision code.email
: RFC5302 email address.idn-email
: RFC6531 internationalized email address.hostname
: RFC1132 internet hostname.idn-hostname
: RFC5890 internationalized internet hostname.ipv4
: RFC2673 dotted-quad IPv4 address.ipv6
: RFC2373 IPv6 address.url
: RFC3986 URI.url-reference
: RFC3986 URI Reference.irl
: RFC3987 Internationalized Resource Identifier.irl-reference
: RFC3987 Internationalized Resource Identifier Reference.url-template
: RFC6570 URI Template.uuid
: RFC4122 UUID.regex
: Regular expression. Specific patterns may be implementation-dependent.base64
: A Base64-encoded string, denoting arbitrary binary data.Also adds support for passing in a hash of type → proc to a
type_parsers
options, allowing a user to provide custom implementations.Also allows disabling of type parsing altogether by passing the
parse_types: false
option.