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

fix : hydra #585

Closed

Conversation

valentin-dassonville
Copy link
Contributor

@valentin-dassonville valentin-dassonville commented Oct 7, 2024

Q A
Branch? main
License MIT

Up to API Platform 4.

Get the error : Cannot find the class related to https://localhost/docs.jsonld#Entrypoint/greeting from api-doc-parser.

@dunglas @soyuka

@valentin-dassonville
Copy link
Contributor Author

valentin-dassonville commented Oct 11, 2024

The problem is the key for return is wrong.
This is supportedOperation in a test that i made.
The problem is from the JsonLd expand in api-doc-parser. Only happen when hydra_prefix: false.

"http://www.w3.org/ns/hydra/core#supportedOperation": [
      {
        "@type": [
          "http://www.w3.org/ns/hydra/core#Operation",
          "https://schema.org/FindAction"
        ],
        "http://www.w3.org/2000/01/rdf-schema#label": [
          {
            "@value": "Retrieves the collection of Greeting resources."
          }
        ],
        "http://www.w3.org/ns/hydra/core#method": [
          {
            "@value": "GET"
          }
        ],
        "http://www.w3.org/ns/hydra/core#title": [
          {
            "@value": "Retrieves the collection of Greeting resources."
          }
        ],
        "https://localhost/docs.jsonld#returns": [
          {
            "@id": "https://localhost/Collection"
          }
        ]
      }

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

Successfully merging this pull request may close these issues.

1 participant