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

@range {json} only works with Record #88

Open
joachimvh opened this issue Feb 11, 2022 · 1 comment
Open

@range {json} only works with Record #88

joachimvh opened this issue Feb 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@joachimvh
Copy link
Member

joachimvh commented Feb 11, 2022

Using version 3.0.0-beta.7

  /**
   * @param response - @range {json}
   */
  public constructor(response: any) {

(or unknown) results in JSON-LD

      "parameters": [
        {
          "@id": "scs:dist/identity/interaction/FixedInteractionHandler.jsonld#FixedInteractionHandler_response",
          "range": {
            "@type": "ParameterRangeWildcard"
          }
        }
      ],

When using Record

  /**
   * @param response - @range {json}
   */
  public constructor(response: Record<string, unknown>) {

I do get

      "parameters": [
        {
          "@id": "scs:dist/identity/interaction/FixedInteractionHandler.jsonld#FixedInteractionHandler_response",
          "range": "rdf:JSON"
        }
      ],

Similar to #87, in case this is expected behaviour, the context does not get type: @json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants