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

Note when Type is not an expected type for any properties #5

Open
RichardWallis opened this issue Nov 14, 2019 · 0 comments
Open

Note when Type is not an expected type for any properties #5

RichardWallis opened this issue Nov 14, 2019 · 0 comments

Comments

@RichardWallis
Copy link
Collaborator

Transferred from schemaorg issue (#2286) as problem is in code now in this repo.

Comment from @jvandriel in original issue:

Thanks for checking @RichardWallis !

I was looking for Patient code examples when I noticed there weren't any properties mentioned that expect it as their value. Just wanted to make sure I hadn't uncovered a bug.

Though might I request that somewhere in the future pages show a message stating:

"Instances of $type are not expected as values for any properties at the moment"

as opposed to simply omitting the entire area below:

"Instances of $type may appear as values for the following properties"

Having such a 'non-voluminous' message would have helped greatly already because I would have known not to look any further.

Comment from @RichardWallis
Perhaps:

"Instances of $type are not expected as values for any properties at the moment, however they may be used as values for properties that expect one of its super-types"

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

1 participant