Skip to content

Commit

Permalink
Update openapi.yml with correct values for POST /api/v2/Attributes (#…
Browse files Browse the repository at this point in the history
…248)

* fix: type and owner cannot be specified anymore in CreateRepositoryAttributeUseCase

* feat: rename Request type of renamed use case
  • Loading branch information
britsta authored Sep 2, 2024
1 parent 21fa1ba commit c778378
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/sdk/src/endpoints/AttributesEndpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
GetOwnRepositoryAttributesRequest,
GetOwnSharedIdentityAttributesRequest,
GetPeerSharedIdentityAttributesRequest,
GetSharedVersionsOfRepositoryAttributeRequest,
GetSharedVersionsOfAttributeRequest,
GetValidAttributesRequest,
NotifyPeerAboutRepositoryAttributeSuccessionRequest,
NotifyPeerAboutRepositoryAttributeSuccessionResponse,
Expand Down Expand Up @@ -67,7 +67,7 @@ export class AttributesEndpoint extends Endpoint {
return await this.get(`/api/v2/Attributes/${attributeId}/Versions`);
}

public async getSharedVersionsOfAttribute(attributeId: string, request: GetSharedVersionsOfRepositoryAttributeRequest): Promise<ConnectorHttpResponse<ConnectorAttributes>> {
public async getSharedVersionsOfAttribute(attributeId: string, request: GetSharedVersionsOfAttributeRequest): Promise<ConnectorHttpResponse<ConnectorAttributes>> {
return await this.get(`/api/v2/Attributes/${attributeId}/Versions/Shared`, request);
}

Expand Down
8 changes: 4 additions & 4 deletions packages/sdk/src/types/attributes/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
export * from "./ConnectorAttribute";
export * from "./ConnectorAttributes";
export * from "./IQLQuery";
export * from "./IdentityAttributeQuery";
export * from "./IQLQuery";
export * from "./RelationshipAttributeQuery";
export * from "./ThirdPartyRelationshipAttributeQuery";
export * from "./requests/CreateRepositoryAttributeRequest";
export * from "./requests/DeleteOwnSharedAttributeAndNotifyPeerResponse";
export * from "./requests/DeletePeerSharedAttributeAndNotifyOwnerResponse";
export * from "./requests/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerResponse";
export * from "./requests/ExecuteIQLQueryRequest";
export * from "./requests/ExecuteIdentityAttributeQueryRequest";
export * from "./requests/ExecuteIQLQueryRequest";
export * from "./requests/ExecuteRelationshipAttributeQueryRequest";
export * from "./requests/ExecuteThirdPartyRelationshipAttributeQueryRequest";
export * from "./requests/GetAttributesRequest";
export * from "./requests/GetOwnRepositoryAttributesRequest";
export * from "./requests/GetOwnSharedIdentityAttributesRequest";
export * from "./requests/GetPeerSharedIdentityAttributesRequest";
export * from "./requests/GetSharedVersionsOfRepositoryAttributeRequest";
export * from "./requests/GetSharedVersionsOfAttributeRequest";
export * from "./requests/GetValidAttributesRequest";
export * from "./requests/NotifyPeerAboutRepositoryAttributeSuccessionRequest";
export * from "./requests/NotifyPeerAboutRepositoryAttributeSuccessionResponse";
export * from "./requests/SucceedAttributeRequest";
export * from "./requests/SucceedAttributeResponse";
export * from "./ThirdPartyRelationshipAttributeQuery";
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface GetSharedVersionsOfAttributeRequest {
peers?: string[];
onlyLatestVersions?: boolean;
}

This file was deleted.

5 changes: 0 additions & 5 deletions src/modules/coreHttpApi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,6 @@ paths:
required:
- value
properties:
"@type":
type: string
enum: ["IdentityAttribute"]
owner:
$ref: "#/components/schemas/Address"
value:
$ref: "#/components/schemas/AttributeValue"
tags:
Expand Down

0 comments on commit c778378

Please sign in to comment.