Skip to content

Commit

Permalink
fix: ReleaseSchemaからtopicsを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
acutus-fujii committed Jan 3, 2025
1 parent 6fa13e4 commit 4b73cad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions openapi/apis/DefaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ export class DefaultApi extends runtime.BaseAPI {
}

/**
* ブックを更新します。 教員または管理者でなければなりません。 教員は自身の著作のブックでなければなりません。
* ブックを更新します。 教員または管理者でなければなりません。 教員は自身の著作のブックでなければなりません。 追加トピックは複製されます。noclone=true を指定するとトピックを複製しません。
* ブックの更新
*/
async apiV2BookBookIdPutRaw(requestParameters: ApiV2BookBookIdPutRequest): Promise<runtime.ApiResponse<InlineResponse2006Books>> {
Expand Down Expand Up @@ -761,7 +761,7 @@ export class DefaultApi extends runtime.BaseAPI {
}

/**
* ブックを更新します。 教員または管理者でなければなりません。 教員は自身の著作のブックでなければなりません。
* ブックを更新します。 教員または管理者でなければなりません。 教員は自身の著作のブックでなければなりません。 追加トピックは複製されます。noclone=true を指定するとトピックを複製しません。
* ブックの更新
*/
async apiV2BookBookIdPut(requestParameters: ApiV2BookBookIdPutRequest): Promise<InlineResponse2006Books> {
Expand Down
8 changes: 0 additions & 8 deletions openapi/models/InlineResponse2005Release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ export interface InlineResponse2005Release {
* @memberof InlineResponse2005Release
*/
shared?: boolean;
/**
*
* @type {Array<number>}
* @memberof InlineResponse2005Release
*/
topics?: Array<number>;
}

export function InlineResponse2005ReleaseFromJSON(json: any): InlineResponse2005Release {
Expand All @@ -65,7 +59,6 @@ export function InlineResponse2005ReleaseFromJSONTyped(json: any, ignoreDiscrimi
'version': !exists(json, 'version') ? undefined : json['version'],
'comment': !exists(json, 'comment') ? undefined : json['comment'],
'shared': !exists(json, 'shared') ? undefined : json['shared'],
'topics': !exists(json, 'topics') ? undefined : json['topics'],
};
}

Expand All @@ -82,7 +75,6 @@ export function InlineResponse2005ReleaseToJSON(value?: InlineResponse2005Releas
'version': value.version,
'comment': value.comment,
'shared': value.shared,
'topics': value.topics,
};
}

Expand Down
4 changes: 3 additions & 1 deletion server/models/book/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ export const releasePropsSchema = {

export type ReleaseProps = FromSchema<typeof releasePropsSchema>;

const {topics: _topics, ...releaseSchemaProps} = releasePropsSchema.properties;

export const releaseSchema = {
type: "object",
properties: {
releasedAt: { type: "string", format: "date-time" },
...releasePropsSchema.properties,
...releaseSchemaProps,
},
additionalProperties: false,
} as const;
Expand Down

0 comments on commit 4b73cad

Please sign in to comment.