dimas-b opened a new issue, #915:
URL: https://github.com/apache/polaris/issues/915
### Describe the bug
Serializing `Catalog` objects to JSON appears to produce duplicate `type`
entries.
Example HTTP request from integration tests:
```
POST /api/management/v1/catalogs HTTP/1.1
Accept: application/json
Authorization: Bearer ***
Content-Type: application/json
realm: POLARIS
User-Agent: Quarkus REST Client
content-length: 373
host: localhost:41133
{"type":"INTERNAL","type":"INTERNAL","name":"mycatalog_1iwijzxj1hhj8","properties":{"default-base-location":"s3://bucket1/"},"createTimestamp":null,"lastUpdateTimestamp":null,"entityVersion":null,"storageConfigInfo":{"storageType":"S3","roleArn":"arn:aws:iam::012345678901:role/jdoe","externalId":null,"userArn":null,"region":null,"storageType":"S3","allowedLocations":[]}}
```
### To Reproduce
1. Start wire capture
2. Run `QuarkusManagementServiceIT`
3. Find an HTTP POST request for `/api/management/v1/catalogs`
4. Observe duplicate `type` keys in the payload
### Actual Behavior
_No response_
### Expected Behavior
Each JSON attribute should appear only once.
Note: while it does not cause errors now, some tools may treat duplicate
JSON attributes as errors.
### Additional context
commit f3a5ef0b4262ca03c99b9837517d7d03b88af241
### System information
_No response_
--
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]