jerryshao commented on code in PR #14910:
URL: https://github.com/apache/gravitino/pull/14910#discussion_r4549686771


##########
docs/domains.md:
##########
@@ -0,0 +1,137 @@
+---
+title: "Domains"
+slug: "/domains"
+keyword: "domain, subdomain, metadata discovery, membership"
+license: "This software is licensed under the Apache License version 2."
+---
+
+## Domains in a metalake
+
+A Domain is a business grouping of metadata in a metalake. For example, 
`Finance` can bring together
+a table in an Iceberg catalog, a Kafka topic and a registered model. Domains 
organize discovery;
+they do not change catalog structure, move data or grant data access.
+
+Names are unique across all domains in a metalake, including subdomains. Two 
parents cannot each
+have a child with the same name. Domain names must match 
`[A-Za-z0-9_][A-Za-z0-9_-]{0,63}`.
+The names `*` and `system` (in any letter case) are reserved. Valid names 
retain their spelling:
+a child named `Planning_US` under `Finance` is addressed by `Planning_US`, not 
`Finance.Planning_US`.
+A domain is either top-level or the child of exactly one top-level domain. 
There is only one level
+of subdomains. A top-level domain's scope includes its own members and those 
of its visible children.
+
+Every domain starts as `DRAFT`. Only its managers and owners (including 
inherited managers/owners)
+can see it until publication. `PUBLISHED` domains are visible to users with 
`USE_DOMAIN`.
+Publication does not make metadata public. A child can be published only under 
a published parent;
+a parent cannot be unpublished while a child is published. See the
+[Domain guide](./manage-domains-in-gravitino.md) for lifecycle and snapshot 
behavior.
+
+## Membership through tags
+
+A domain explicitly binds a backing tag, optionally with one value. Membership 
is derived from
+existing [tag assignments and inheritance](./tags.md), rather than maintained 
in a separate list.
+Use the [tag API](./manage-tags-in-gravitino.md) to assign/remove a backing 
tag on a leaf, schema or
+catalog. There is no Domain add-member or remove-member API.
+
+Only these leaf types are members: **table, view, fileset, topic, model and 
semantic model**.
+Tagged catalogs and schemas contribute their recorded leaves; they are never 
members themselves.
+Only objects already recorded by Gravitino are enumerated: a tag on an 
external catalog is not a
+request to crawl its backend. Empty results do not establish that external 
objects are absent.
+
+For the same tag, the assignment nearest the leaf wins: leaf before schema 
before catalog.
+Assignments are replaced as a whole at each nearer level, not combined with 
ancestor values.
+For example, `department=hr` on a table masks `department=finance` on its 
schema, so the table does
+not belong to the domain backed by `department=finance`. A binding without a 
value matches any
+effective assignment of that tag; a valued binding tests exact, case-sensitive 
containment in the
+assignment's values. Different tags resolve independently, allowing membership 
in multiple domains.
+
+Removing a tag from a leaf changes only its own assignment; it is not an 
opt-out from inheritance.
+If its schema or catalog still assigns that backing tag, the leaf remains a 
member through
+inheritance. Removing the last directly assigned value can also reveal an 
ancestor assignment and
+move the leaf back into a different valued domain. To remove inherited 
membership, change the
+assignment at its source or use a nearer assignment that does not match the 
valued binding.
+A valueless backing-tag binding matches any assignment of that tag, so 
assigning another value
+cannot exclude the leaf from that domain.
+
+## Relations and sources
+
+A member query lists each object once, with **all** applicable relations 
relative to the queried
+domain. The same relations appear on detailed object-to-domain lookup. 
Relations have no precedence;
+clients must preserve their whole array.
+
+| SDK relation | REST `relation` | `source` |
+| --- | --- | --- |
+| `DIRECT` | `direct` | Omitted: the leaf itself carries the backing tag. |
+| `INHERITED` | `inherited` | The nearest assigned catalog or schema, with its 
complete `fullName` and `type`. |
+| `VIA_SUBDOMAIN` | `via_subdomain` | The contributing child's literal name as 
`fullName`, with `type: domain`. |

Review Comment:
   I checked the relation table in the Markdown source. The header, separator, 
and data rows each start with one pipe and define three columns: SDK relation, 
REST relation, and source.



##########
docs/domains.md:
##########
@@ -0,0 +1,137 @@
+---
+title: "Domains"
+slug: "/domains"
+keyword: "domain, subdomain, metadata discovery, membership"
+license: "This software is licensed under the Apache License version 2."
+---
+
+## Domains in a metalake
+
+A Domain is a business grouping of metadata in a metalake. For example, 
`Finance` can bring together
+a table in an Iceberg catalog, a Kafka topic and a registered model. Domains 
organize discovery;
+they do not change catalog structure, move data or grant data access.
+
+Names are unique across all domains in a metalake, including subdomains. Two 
parents cannot each
+have a child with the same name. Domain names must match 
`[A-Za-z0-9_][A-Za-z0-9_-]{0,63}`.
+The names `*` and `system` (in any letter case) are reserved. Valid names 
retain their spelling:
+a child named `Planning_US` under `Finance` is addressed by `Planning_US`, not 
`Finance.Planning_US`.
+A domain is either top-level or the child of exactly one top-level domain. 
There is only one level
+of subdomains. A top-level domain's scope includes its own members and those 
of its visible children.
+
+Every domain starts as `DRAFT`. Only its managers and owners (including 
inherited managers/owners)
+can see it until publication. `PUBLISHED` domains are visible to users with 
`USE_DOMAIN`.
+Publication does not make metadata public. A child can be published only under 
a published parent;
+a parent cannot be unpublished while a child is published. See the
+[Domain guide](./manage-domains-in-gravitino.md) for lifecycle and snapshot 
behavior.
+
+## Membership through tags
+
+A domain explicitly binds a backing tag, optionally with one value. Membership 
is derived from
+existing [tag assignments and inheritance](./tags.md), rather than maintained 
in a separate list.
+Use the [tag API](./manage-tags-in-gravitino.md) to assign/remove a backing 
tag on a leaf, schema or
+catalog. There is no Domain add-member or remove-member API.
+
+Only these leaf types are members: **table, view, fileset, topic, model and 
semantic model**.
+Tagged catalogs and schemas contribute their recorded leaves; they are never 
members themselves.
+Only objects already recorded by Gravitino are enumerated: a tag on an 
external catalog is not a
+request to crawl its backend. Empty results do not establish that external 
objects are absent.
+
+For the same tag, the assignment nearest the leaf wins: leaf before schema 
before catalog.
+Assignments are replaced as a whole at each nearer level, not combined with 
ancestor values.
+For example, `department=hr` on a table masks `department=finance` on its 
schema, so the table does
+not belong to the domain backed by `department=finance`. A binding without a 
value matches any
+effective assignment of that tag; a valued binding tests exact, case-sensitive 
containment in the
+assignment's values. Different tags resolve independently, allowing membership 
in multiple domains.
+
+Removing a tag from a leaf changes only its own assignment; it is not an 
opt-out from inheritance.
+If its schema or catalog still assigns that backing tag, the leaf remains a 
member through
+inheritance. Removing the last directly assigned value can also reveal an 
ancestor assignment and
+move the leaf back into a different valued domain. To remove inherited 
membership, change the
+assignment at its source or use a nearer assignment that does not match the 
valued binding.
+A valueless backing-tag binding matches any assignment of that tag, so 
assigning another value
+cannot exclude the leaf from that domain.
+
+## Relations and sources
+
+A member query lists each object once, with **all** applicable relations 
relative to the queried
+domain. The same relations appear on detailed object-to-domain lookup. 
Relations have no precedence;
+clients must preserve their whole array.
+
+| SDK relation | REST `relation` | `source` |
+| --- | --- | --- |
+| `DIRECT` | `direct` | Omitted: the leaf itself carries the backing tag. |
+| `INHERITED` | `inherited` | The nearest assigned catalog or schema, with its 
complete `fullName` and `type`. |
+| `VIA_SUBDOMAIN` | `via_subdomain` | The contributing child's literal name as 
`fullName`, with `type: domain`. |
+
+For example, a schema `ice.sales` carries Finance's backing tag and its table
+`ice.sales.forecast` carries Planning's separate backing tag. Querying 
Finance, whose child is
+Planning, returns the table with both `inherited` from `ice.sales` and 
`via_subdomain` from Planning.
+A direct assignment of Finance's tag masks its inherited assignment of that 
same tag, but the
+independent Planning relation remains. Multiple contributing children produce 
multiple
+`via_subdomain` relations. A child scope selected by a filter still reports 
relations relative to
+the domain addressed in the query. Filtering to one child selects matching 
objects but does not
+trim their relations: a selected object can still report the queried domain's 
own relation and
+relations through other visible children.
+
+Moving or detaching Planning changes parent roll-ups without changing any 
object assignment.
+Renaming Planning changes the child source name on subsequent queries. See
+[Backing tag 
operations](./manage-domains-in-gravitino.md#backing-tag-operations) for 
binding conflicts,
+tag renames, tag identity and removal behavior.
+
+## Membership filters
+
+Java uses `DomainMemberFilter.builder()`; Python uses 
`DomainMemberFilter(...)`.
+REST uses `GET /api/metalakes/{metalake}/domains/{domain}/objects`.
+All supplied options intersect; an unset option does not narrow the result.
+
+| Option | Meaning |
+| --- | --- |
+| `types` | Union of supported leaf types; REST accepts comma-separated, 
case-insensitive names with whitespace trimmed. Omit for all six types. |
+| `nameContains` (Python `name_contains`) | Case-insensitive substring of the 
full object name, including catalog/schema text. No wildcard or regex 
interpretation. Omit for any name; blank text is invalid. |
+| `domains` | Union of selected scopes within the queried domain. Omit or use 
an empty SDK collection for its whole scope. |

Review Comment:
   I checked the membership filter table. Each row starts with one pipe, and 
both the header and separator define two columns: Option and Meaning.



##########
docs/manage-domains-in-gravitino.md:
##########
@@ -0,0 +1,990 @@
+---
+title: "Manage Domains"
+slug: "/manage-domains-in-gravitino"
+keyword: "domain, subdomain, membership, backing tag, Gravitino"
+license: "This software is licensed under the Apache License version 2."
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+## Introduction
+
+A Domain groups metadata across catalogs in one metalake under a business 
name, such as
+`Finance`. Domains provide discovery and organization; they do not grant 
access to the data.
+A domain has a name, optional comment, string properties, status, optional 
parent, backing tag,
+and audit information. See [Domains](./domains.md) for membership and 
hierarchy semantics,
+[Access control](./security/access-control.md#domain-permissions) for 
authorization, and the
+[Domain OpenAPI specification](./open-api/domains.yaml) for request and 
response schemas.
+
+Use a server and Java/Python clients built from the same version that supports 
Domains.
+Follow [Java client setup](./how-to-use-gravitino-client.md) or
+[Python client setup](./how-to-use-python-client.md) first. The examples below 
use simple
+authentication as `anonymous`, a configured service administrator, on a local 
server at
+`http://127.0.0.1:8090`. They create an isolated metalake and use the built-in 
model catalog,
+so they need no external catalog service. Use unique names on a shared server 
and configure
+authentication for your deployment. See 
[Authentication](./security/how-to-authenticate.md).
+
+## Deployment prerequisites
+
+For an existing deployment, complete the database schema upgrade for the 
server version before
+using Domain APIs. The 1.3-to-2.0 upgrade scripts for H2, MySQL and PostgreSQL 
add the Domain
+metadata and hierarchy tables; installing a new client alone does not upgrade 
the server's store.
+Follow [Upgrade Gravitino](./how-to-upgrade.md) for the supported backup and 
upgrade procedure and
+[Relational backend storage](./how-to-use-relational-backend-storage.md) for 
backend setup.
+Existing tags do not automatically create domains: bind them explicitly using 
the operations below.
+
+## API examples
+
+Each operation below provides REST, Java and Python examples. They assume an 
existing metalake
+named `test`, with clients connected to that metalake. Java uses `lake` 
(`GravitinoMetalake`);
+Python uses `lake` (`GravitinoClient`). `domain` refers to a loaded Finance 
domain. Import Java
+Domain types from `org.apache.gravitino.domain`, `TagValue` from 
`org.apache.gravitino.tag`, and
+`MetadataObject` from `org.apache.gravitino`. Python uses 
`gravitino.api.domain`,
+`gravitino.api.tag` and `gravitino.api.metadata_object` respectively.
+REST examples use simple authentication as the configured administrator 
`anonymous`.
+These are independent operation examples; the [complete 
examples](#complete-java-example) below
+show a runnable sequence with setup and cleanup.
+
+All loaded Domain objects are snapshots. Mutations return a fresh snapshot and 
leave old objects
+unchanged. An operation on an old snapshot applies to current server state 
(last write wins), using
+the snapshot's name. After rename it can fail with not-found; if another 
domain reuses that old name,
+the operation targets that new domain. Reload by name after changes; snapshots 
are not revision locks.
+
+## Domain Operations
+
+### Create a Domain
+
+Create a top-level draft with an explicit backing tag. Here a new valueless 
tag is created
+atomically with the domain. See [Backing Tag 
Operations](#backing-tag-operations) for existing-tag
+bindings and constraints.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X POST -H 'Content-Type: 
application/json' \
+  -d '{"name":"Finance","comment":"Financial 
assets","properties":{},"backingTag":{"name":"finance","create":true}}' \
+  "http://127.0.0.1:8090/api/metalakes/test/domains";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain domain = lake.createDomain(
+    "Finance", "Financial assets", Collections.emptyMap(),
+    TagValue.noValue("finance"), true);
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+domain = lake.create_domain("Finance", "Financial assets", {}, 
TagValue("finance"), True)
+```
+
+</TabItem>
+</Tabs>
+
+Import `java.util.Collections` for the Java examples that use 
`Collections.emptyMap()`.
+
+### Get a Domain
+
+Load a snapshot by its literal name. The snapshot exposes name, comment, 
properties, status,
+parent, backing tag and audit information. Ordinary snapshots have no object 
membership relations.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Finance";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain domain = lake.getDomain("Finance");
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+domain = lake.get_domain("Finance")
+```
+
+</TabItem>
+</Tabs>
+
+### List Domains
+
+Lists include visible top-level domains and subdomains. Names-only and 
detailed variants are
+shown below; an empty result contains an empty array.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy \
+  "http://127.0.0.1:8090/api/metalakes/test/domains";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+String[] names = lake.listDomains();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+names = lake.list_domains()
+```
+
+</TabItem>
+</Tabs>
+
+### List Domains with Details
+
+Set `details=true` to retrieve snapshots instead of names.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy \
+  "http://127.0.0.1:8090/api/metalakes/test/domains?details=true";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain[] domains = lake.listDomainsInfo();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+domains = lake.list_domains_info()
+```
+
+</TabItem>
+</Tabs>
+
+### Alter a Domain
+
+Rename, update/clear the comment, or set/remove properties. Renaming preserves 
tags and hierarchy.
+Use `null` / `None` to clear the comment. Reload snapshots addressed by the 
former name.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X PUT -H 'Content-Type: 
application/json' \
+  -d 
'{"updates":[{"@type":"rename","newName":"Corporate_Finance"},{"@type":"updateComment","newComment":"Finance
 
metadata"},{"@type":"setProperty","property":"contact","value":"finance-team"},{"@type":"removeProperty","property":"obsolete"}]}'
 \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Finance";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain renamed = lake.alterDomain("Finance",
+    DomainChange.rename("Corporate_Finance"),
+    DomainChange.updateComment("Finance metadata"),
+    DomainChange.setProperty("contact", "finance-team"),
+    DomainChange.removeProperty("obsolete"));
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+renamed = lake.alter_domain(
+    "Finance",
+    DomainChange.rename("Corporate_Finance"),
+    DomainChange.update_comment("Finance metadata"),
+    DomainChange.set_property("contact", "finance-team"),
+    DomainChange.remove_property("obsolete"),
+)
+```
+
+</TabItem>
+</Tabs>
+
+### Publish a Domain
+
+Publish the parent before publishing children. Repeating the current status is 
a no-op.
+Publication exposes the domain to users who can use it; it does not grant data 
access.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X PATCH -H 'Content-Type: 
application/json' \
+  -d '{"status":"published"}' \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Finance";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain published = domain.publish();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+published = domain.publish()
+```
+
+</TabItem>
+</Tabs>
+
+### Unpublish a Domain
+
+Unpublish children before their parent. A draft is visible only to its 
managers and owners.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X PATCH -H 'Content-Type: 
application/json' \
+  -d '{"status":"draft"}' \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Finance";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain draft = domain.unpublish();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+draft = domain.unpublish()
+```
+
+</TabItem>
+</Tabs>
+
+### Delete a Domain
+
+Delete or detach children before deleting their parent. Members alone do not 
prevent deletion.
+The operation keeps backing tags and object assignments and returns false if 
the domain is absent.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X DELETE \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Finance";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+boolean deleted = lake.deleteDomain("Finance");
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+deleted = lake.delete_domain("Finance")
+```
+
+</TabItem>
+</Tabs>
+
+## Subdomain Operations
+
+There is one level of subdomains. Names are unique across the metalake, 
including children.
+A child is addressed by its own literal name, without a parent prefix.
+
+### Create a Subdomain
+
+Create a draft and its parent link atomically. `domain` is the top-level 
Finance parent.
+The explicit backing-tag creation and binding rules are the same as for a 
top-level domain.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X POST -H 'Content-Type: 
application/json' \
+  -d 
'{"name":"Planning_US","parent":"Finance","backingTag":{"name":"planning","create":true}}'
 \
+  "http://127.0.0.1:8090/api/metalakes/test/domains";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain child = domain.createSubdomain(
+    "Planning_US", null, null, TagValue.noValue("planning"), true);
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+child = domain.create_subdomain("Planning_US", None, None, 
TagValue("planning"), True)
+```
+
+</TabItem>
+</Tabs>
+
+### List Subdomains
+
+List the names of immediate children visible to the caller.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Finance/subdomains";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+String[] children = domain.listSubdomains();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+children = domain.list_subdomains()
+```
+
+</TabItem>
+</Tabs>
+
+### List Subdomains with Details
+
+Retrieve visible child snapshots rather than names.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy \
+  
"http://127.0.0.1:8090/api/metalakes/test/domains/Finance/subdomains?details=true";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain[] children = domain.listSubdomainsInfo();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+children = domain.list_subdomains_info()
+```
+
+</TabItem>
+</Tabs>
+
+### Attach or Move a Domain
+
+Attach Planning_US under Finance, replacing any current parent. The 
destination must be top-level
+and cannot be the domain itself. A domain with children cannot become a child; 
a published child
+requires a published destination. Tags and assignments remain intact; 
membership roll-ups and
+inherited permissions follow the new parent immediately. Attaching to the 
current parent is a no-op.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X PUT -H 'Content-Type: 
application/json' \
+  -d '{"parent":"Finance"}' \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Planning_US/parent";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain child = lake.getDomain("Planning_US");
+Domain attached = child.attachToParent("Finance");
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+child = lake.get_domain("Planning_US")
+attached = child.attach_to_parent("Finance")
+```
+
+</TabItem>
+</Tabs>
+
+### Detach a Domain
+
+Make the child top-level without retagging its members. Former parent 
permissions and membership
+roll-ups stop applying. Detaching a top-level domain is a no-op.
+
+<Tabs groupId='language' queryString>
+<TabItem value="shell" label="REST">
+
+```shell
+curl --fail-with-body -u anonymous:dummy -X DELETE \
+  "http://127.0.0.1:8090/api/metalakes/test/domains/Planning_US/parent";
+```
+
+</TabItem>
+<TabItem value="java" label="Java">
+
+```java
+Domain child = lake.getDomain("Planning_US");
+Domain detached = child.detachFromParent();
+```
+
+</TabItem>
+<TabItem value="python" label="Python">
+
+```python
+child = lake.get_domain("Planning_US")
+detached = child.detach_from_parent()
+```
+
+</TabItem>
+</Tabs>
+
+## Backing Tag Operations
+
+Creation always requires an explicit backing tag:
+
+| Intent | Java | Python | REST `backingTag` |
+| --- | --- | --- | --- |
+| Create a new valueless tag | `TagValue.noValue("finance"), true` | 
`TagValue("finance"), True` | `{"name":"finance","create":true}` |
+| Bind an existing tag, any assignment | `TagValue.noValue("department"), 
false` | `TagValue("department"), False` | 
`{"name":"department","create":false}` |
+| Bind an existing tag value | `TagValue.of("department", "finance"), false` | 
`TagValue("department", "finance"), False` | 
`{"name":"department","value":"finance","create":false}` |

Review Comment:
   I checked the backing tag examples in the Markdown source. Each row starts 
with one pipe and has four cells, matching the four-column header and separator.



##########
docs/open-api/domains.yaml:
##########
@@ -850,7 +872,9 @@ components:
       properties:
         status:
           type: string
-          enum: [draft, published, DRAFT, PUBLISHED]
+          pattern: 
"^([dD][rR][aA][fF][tT]|[pP][uU][bB][lL][iI][sS][hH][eE][dD])$"
+          description: Accepts draft or published, case-insensitively; 
responses use lowercase.
+          example: published

Review Comment:
   The request and response already have separate schemas. The status update 
request uses a case-insensitive pattern so mixed-case input validates. The 
domain response retains the explicit enum [draft, published], which exposes the 
canonical values to OpenAPI consumers.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to