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

Proposal: URI feature syntax #49

Open
b-wils opened this issue Jun 4, 2024 Discussed in #3 · 1 comment
Open

Proposal: URI feature syntax #49

b-wils opened this issue Jun 4, 2024 Discussed in #3 · 1 comment

Comments

@b-wils
Copy link
Contributor

b-wils commented Jun 4, 2024

Discussed in #3

Originally posted by mbasaglia November 28, 2023
We need a way of referencing objects, properties, etc within the specs. This is useful in several places, for example profile definitions (#1) and can-i-lottie.

Assuming the schema in #2 is merged, I propose using URI-references similar to what $ref would use in the schema to refer to a specific definition.

Examples:

#/$defs/shapes/rectangle
#/$defs/shapes/rectangle/position

These are technically relative to the schema but I don't think they need to be fully qualified.

For profile definitions I propose using the notation described above to include parts of the schema, and the ! prefix to exclude specific definitions.

@b-wils b-wils added this to the 1.0 milestone Jun 4, 2024
@jbeta51 jbeta51 removed this from the 1.0 milestone Jun 25, 2024
@jbeta51
Copy link
Contributor

jbeta51 commented Jun 25, 2024

As discussed in the weekly spec meeting, we're moving this discussion to a post-1.0 timeline. We'll keep this open and revisit this when we start discussing profiles.

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

No branches or pull requests

2 participants