Skip to content

@range {json} only works with Record #88

Open
@joachimvh

Description

@joachimvh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions