Solufa
Solufa
この課題は全く気付いていませんでした 緊急性は低そうなのでNext.jsとNuxt.jsとSvelte-kitそれぞれでシングルクォートをどう扱っているのか確認してから対応を決めます
このIssueきっかけで導入しました https://github.com/aspida/aspida/issues/554 (今気づいたけど追加でコメント来てるな) V2では外して aspida としてはエンドポイントをパス変数の別名にしてもらおうと考えてた frourioは非対応だけど、これはバックエンドも自分で握れる状況ならPolymorphが必要なAPI定義をすべきではないという思想 FEはAPI仕様を変えられないのでaspidaでは代替案としてパス変数として分離 ``` api/ - hoge/ - index.ts
私の「パス変数として分離」パターンはそれも解決しているつもりだったけどこれは意図と違う? `api/_hogeA@string/index.ts` ```ts export type Methods = { get: { resBody: number } } ``` `api/_hogeB@string/index.ts` ```ts export type Methods = { get: { resBody: string } } ``` `sample.ts`...
すみません、上記書き間違えてました `api/_hogeA@string/index.ts` ```ts export type Methods = { post: { reqBody: number resBody: number } } ``` `api/_hogeB@string/index.ts` ```ts export type Methods = { post: { reqBody: string resBody: string...
今はないけどv0には `api/_hogeB@HogeType/index.ts` という型名を指定する方法があった `api/@types.ts` ```ts export type HogeType = 'hoge' ``` これで制約をかけられる 幽霊型好きなのでv2でこの機能を復活させる予定だった
From the description on this site, it seems that the implementation of anyOf is incomplete but not wrong. https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/
非常に詳細に調べていただきありがとうございます。 答えを出すのにかなり時間がかかりましたが、画像のような絞り込みを記述することにしました 根本的な解決は aspida v2 をリリースしたあとなら実現できそうです 
Fixed in v0.23.0
class-transformerとclass-validatorが非推奨になったためClose
aspidaのアップデートにより機能の制限を回避し1年越しでマージ ありがとうございました