Skip to content

Comments

Improve JSON marshaling of a11y metadata#290

Open
naglis wants to merge 5 commits intoreadium:developfrom
naglis:issue-281
Open

Improve JSON marshaling of a11y metadata#290
naglis wants to merge 5 commits intoreadium:developfrom
naglis:issue-281

Conversation

@naglis
Copy link
Contributor

@naglis naglis commented Feb 3, 2026

Addresses #281.

// A11yPrimaryAccessMode is a human primary sensory perceptual system or cognitive faculty through which a person may process or perceive information.
type A11yPrimaryAccessMode string

type A11yPrimaryAccessModeList [][]A11yPrimaryAccessMode
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the type name since it is a list of lists. Would welcome suggestions.

This is needed to have a custom `MarshalJSON` implementation to marshal
e.g. `["textual"]` as `"textual"`.

Addresses readium#281
This implementation allows to render a profile list of a single value as a string.

Addresses readium#281
The expected result changed after adding a custom `MarshalJSON` to
`A11yProfileList` to marshal a single value as a string.
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

Successfully merging this pull request may close these issues.

1 participant