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

Schema.org type serialization invalid when http and https are mixed #40

Open
rvanlaak opened this issue Oct 25, 2019 · 0 comments
Open

Comments

@rvanlaak
Copy link
Collaborator

issue #24 does describe the argumentation the semantics of on namespaces being different. This is something we can work around as the library's implementation is flexible enough for that.

A consequence is that calling item->toObject will lead to an invalid type:

image

An IRI as http://schema.org/https://schema.org/WebPage can be seen as invalid.

What about adding several helpers for sanitizing / handling http & https on the profile equally?

Schema.org redirects http to https since a while, so both can be seen as identical. That would solve the following inconsistency:

image

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