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

SWE Common DataArray values missing options for XML/Text/Binary encodings #100

Open
autermann opened this issue Dec 12, 2024 · 1 comment

Comments

@autermann
Copy link
Member

The DataArrays values property is defined as either an JSON array or an external reference.

It should also be allowed to inline arrays encded using TextEncoding, XMLEncoding and BinaryEncoding, something like this:

{
  "oneOf": [
    {
      "type": "array"
    },
    {
      "type": "string"
    },
    {
      "type": "string",
      "format": "base64"
    },
    {
      "$ref": "#/definitions/AssociationAttributeGroup"
    }
  ]
}
@alexrobin
Copy link
Collaborator

Discussed during 12/12 Telecon.

We decided to keep the schema as-is and only allow JSON or URI (including data-uris).
Add example with a data URI containing base64 data.

Somewhere in SWECommon spec we should mandate that implementations must support at least the following protocols: http://, https:// and data: (RFC 2397).

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

2 participants