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

[Feature Request] Specify type / enum when inheriting a property in Schema Editor #181

Open
flaneuse opened this issue Aug 10, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@flaneuse
Copy link
Collaborator

Describe the solution you'd like
If I'm deriving a schema from a pre-existing schema (like NIAID:Dataset), I can add properties from a parent schema which are not included in that schema (for instance: schema.org:about). However, I can't specify the type or enum properties like you can when you add a completely new property.

@flaneuse flaneuse added the enhancement New feature or request label Aug 10, 2022
@gtsueng
Copy link
Collaborator

gtsueng commented Sep 22, 2022

The enum values are set via the validation editor, which makes sense since this would only apply to profiles (ie- classes with JSON schema validation rules). For the issue surrounding expectedTypes for properties from a parent class, the property will already have an expectedType which you cannot change unless you're redefining the property. For instance the expectedType for schema:about is Thing. You can't change this since it's set by schema.org. If you wanted to change the expectedType to something like DefinedTerm or Text, you would need add it as a new property. I think this behavior makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants