Skip to content

UAPI.16: turn the order field into a proper enum - #263

Merged
brauner merged 1 commit into
uapi-group:mainfrom
poettering:uapi16-sort-order-default-change
Dec 2, 2026
Merged

brauner merged 1 commit into
uapi-group:mainfrom
poettering:uapi16-sort-order-default-change

Conversation

@poettering

Copy link
Copy Markdown
Collaborator

So far the order field only knew a single value, codepoint, and the "unordered" case could only be expressed by leaving the field unset. Let's make it a proper enum, with an explicit none value next to codepoint, and document both in a table.

The default remains unchanged: if the field is not set it is equivalent to none, hence existing manifests keep their meaning. Unknown values continue to be treated like an unset field, i.e. like none.

So far the `order` field only knew a single value, `codepoint`, and
the "unordered" case could only be expressed by leaving the field
unset. Let's make it a proper enum, with an explicit `none` value next
to `codepoint`, and document both in a table.

The default remains unchanged: if the field is not set it is
equivalent to `none`, hence existing manifests keep their meaning.
Unknown values continue to be treated like an unset field, i.e. like
`none`.
@brauner
brauner merged commit 440877a into uapi-group:main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants