A human-friendly DSL for ATProto Lexicons
27
fork

Configure Feed

Select the types of activity you want to include in your feed.

Array syntax not powerful enough #6

open opened by vmx.cx

I'm trying to express tags. So I want to have an array of strings.

The syntax would be something like (playground link):

tags: string[] constrained {
    maxLength: 100,
},

The maxLength now is on tags, but not on the individual items.

"tags": {
  "type": "array",
  "items": {
    "type": "string"
  },
  "maxLength": 100
}

I can't find any syntax in the docs to express it on an individual items level. It also doesn't transform it correctly from Lexicon to MLF.

[deleted by author]
vmx.cx (author)
[deleted by author]
vmx.cx (author)
[deleted by author]
[deleted by author]
[deleted by author]
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:3mdq56yhyqq5k6d4guztheaf/sh.tangled.repo.issue/3mj2npcfp4522