Skip to content

人事労務のAPIスキーマを使用して生成したクライアントの型情報が期待通りに動作していない #451

@kenchan0130

Description

@kenchan0130

https://github.com/freee/freee-api-schema/blob/master/hr/open-api-3/api-schema.json#L6320-L6326

https://github.com/freee/freee-api-schema/blob/master/hr/open-api-3/api-schema.json#L6337-L6343

https://github.com/freee/freee-api-schema/blob/master/hr/open-api-3/api-schema.json#L16382-L16387

https://github.com/freee/freee-api-schema/blob/master/hr/open-api-3/api-schema.json#L16399-L16404

components/schemas に定義されている、プロパティを参照してしまっており、正しいモデルと判別できていないと見受けられる。

一部コードジェネレーターではエラーになってしまう。
openapi-generatorでは生成はできるが、Itemsという型として認識されるが、Itemsというモデルが生成されず、静的型付け言語ではコンパイルエラーとなる。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions