Skip to content

Week of Dec 1#425

Merged
duglin merged 9 commits into
xregistry:mainfrom
duglin:Nov24
Dec 4, 2025
Merged

Week of Dec 1#425
duglin merged 9 commits into
xregistry:mainfrom
duglin:Nov24

Conversation

@duglin

@duglin duglin commented Dec 2, 2025

Copy link
Copy Markdown
Contributor
  • More and better error messages
  • make it clear that read-only attributes should be ignored on write ops
  • fix the "lie" for POST .../rID - it's not an alias for "POST ../rID/versions".
    Also include text about ignoring the Resource-level attributes that might appear.
  • define ?ignore=XXX* and remove the individual ?ignoreXXX flags

Fixes #427
Fixes #426
FIxes #428

- More and better error messages

Signed-off-by: Doug Davis <duglin@gmail.com>
@duglin
duglin force-pushed the Nov24 branch 2 times, most recently from a2f663c to 5842aee Compare December 3, 2025 01:01
Signed-off-by: Doug Davis <duglin@gmail.com>
…eaders

Signed-off-by: Doug Davis <duglin@gmail.com>
Signed-off-by: Doug Davis <duglin@gmail.com>
Signed-off-by: Doug Davis <duglin@gmail.com>
Signed-off-by: Doug Davis <duglin@gmail.com>
Signed-off-by: Doug Davis <duglin@gmail.com>
Comment thread core/http.md Outdated

The `POST` variant when directed at a single entity, MUST adhere to the
following:
The `POST` variant when directed at a single entity (not a Resource), MUST

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
The `POST` variant when directed at a single entity (not a Resource), MUST
The `POST` variant when directed at a single entity other than a Resource, MUST

(Just to clarify that this isn't claiming that resources aren't entities.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread core/http.md Outdated
non-null value, the HTTP body MUST be empty. If the `<RESOURCE>url`
attribute is absent, then the contents of the HTTP body (even if empty) are
to be used as the entity's document.
- The `<RESOURCE>` and `<RESOURCEbase64>` attribute MUST never appear as

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
- The `<RESOURCE>` and `<RESOURCEbase64>` attribute MUST never appear as
- The `<RESOURCE>` and `<RESOURCEbase64>` attributes MUST never appear as

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread core/http.md Outdated
allow for [No-Code Servers](#no-code-servers) servers that might not be
able to control the HTTP response headers.

The `<RESOURCE>` and `<RESOURCEbase64>` attribute MUST NOT be serialized as

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
The `<RESOURCE>` and `<RESOURCEbase64>` attribute MUST NOT be serialized as
The `<RESOURCE>` and `<RESOURCEbase64>` attributes MUST NOT be serialized as

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread core/http.md
sub-trees into one result set and remove any duplicates - adjusting any
collection `url` and `count` values as needed.

### `?ignore` Flag

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This doesn't describe:

  • What the flag is for or what it does
  • What it means to have just ?ignore rather than ?ignore=abc,xyz

(Linking to the core spec would cover these, but at least a single sentence would help to give an idea of what it's about, like we have for inline and filter.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Doi - sorry - fixed

Comment thread core/http.md Outdated
* Type: `https://github.com/xregistry/spec/blob/main/core/spec.md#details_required`
* Code: `405 Method Not Allowed`
* Title: `$details suffix is needed when using PATCH for Resource: <subject>.`
* Title: `$details suffix is needed when using PATCH for entity: <subject>.`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
* Title: `$details suffix is needed when using PATCH for entity: <subject>.`
* Title: `$details suffix is needed when using PATCH for an entity: <subject>.`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread core/spec.md Outdated
* Code: `400 Bad Request`
* Subject: `<request_path>`
* Title: `Can't sort on a non-collection result set. Query path: <subject>.`
* Detail: Suggestion: list of attributes that are too large.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't understand how this detail is relevant to this error. Not sure if this line is just in the wrong place?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LOL - copy-n-paste error - good eye

Signed-off-by: Doug Davis <duglin@gmail.com>
Signed-off-by: Doug Davis <duglin@gmail.com>
@duglin

duglin commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

Approved on the 12/4 call

@duglin
duglin merged commit 880b0ee into xregistry:main Dec 4, 2025
2 checks passed
@duglin
duglin deleted the Nov24 branch December 4, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants