Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

AMF does not translate default type for RAML data types #69

Description

@sichvoge

In RAML data types, the default type for any types is string. For example, the following type definitions are equivalent:

types:
  AddressData:
    properties:
      address_country:
      address_locality:
      address_region:
      postal_code:
      street_address:
types:
  AddressData:
    properties:
      address_country: 
        type: string
      address_locality:
        type: string
      address_region:
        type: string
      postal_code:
        type: string
      street_address:
        type: string

AMF does not correctly correlate and assigns the default type, and only leaves the value for the type empty. This is a snippet from the JSON-LD shape:

...
      {
        "@id": "file://#/definitions/AddressData/property/address_locality",
        "@type": [
          "shacl:PropertyShape",
          "shacl:Shape"
        ],
        "raml-shapes:propertyLabel": "address_locality",
        "shacl:maxCount": 1,
        "shacl:minCount": 1,
        "shacl:path": {
          "@id": "http://raml.org/vocabularies/shapes/anon#address_locality"
        }
      }
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions