-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
nmshd/connector
#352Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When listing Relationships via GET /api/v2/Relationships, the returned auditLog entries aren't API-conform: According to the API schema the RelationshipAuditLogEntry's content createdBy should be of format date-time [1]. However, it rather looks like a did.
To Reproduce
- Load the API schema with (or any other validation tool):
schema = JSONSchemer.openapi(YAML.safe_load_file(<path-to-file>), permitted_classes: [Time, Date]))- Query relationship templates via
GET api/v2/Relationships - Pass the one of the results to:
schema.valid?(<first-result>)- To see the error details, pass the result of one of the relationships to:
puts schema.validate(<first-result>).first.fetch('error')- See error
value at `/auditLog/0/createdBy` does not match format: date-time
Expected behavior
Please update the OpenAPI docs to represent the API response. Probably, $ref: "#/components/schemas/Address" is desired.
Environment
- Product: Connector
- Version: 6.13.1(API: 3.1.0)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working