↓これはどうでしょうか?
Like!
Are you sure you want to delete the question?
Leaving a resolved question undeleted may help others!
例えば以下のようなもの
type RequestBody = {
required?: boolean;
content: {
[mediaType: string]: {
schema: {
type: string;
properties?: {
[key: string]: {
type: string;
format?: string;
items?: {
type: string;
};
};
};
required?: string[];
};
};
};
};
上記は ChatGPTで簡単に生成してもらったもの。このような型定義のもっと正式なものを提供しているライブラリを探しています。
どれも、OASのvalidationや、UI描写のためのライブラリで、型を直接は提供していませんでした。
↓これはどうでしょうか?
これです!
ありがとうございます
参考までに。