You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This generic Config approach has some disadvantages:
I have two schemas properties. I should probably only keep the first one, since inserting schemas-properties later would unnecessarily recreate it, right?
Setting some properties for a client doesn't make sense. For example, the combination client: 'fetch', httpClient: 'fetch' would be redundant.
We don't have the option to make global settings. For example, the input-property could be defined globally
I'm comparing Orval with https://github.com/kubb-labs/kubb. Kubb allows for global configurations and dedicated configurations for each output (plugin architecture).
In my orval.config.ts (from above), I have two schemas properties. I should probably only keep the first one, since inserting schemas-properties later would unnecessarily recreate it, right?
Would it make sense to redesign Orval to also have such a plugin architecture instead of a god configuration-object for each client? What are the advantages and disadvantages?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want orval to create files for
fetch
andclient
and therefore I have twoConfigs
- I don't know if this is the right approach:This generic
Config
approach has some disadvantages:schemas
properties. I should probably only keep the first one, since insertingschemas
-properties later would unnecessarily recreate it, right?client
doesn't make sense. For example, the combinationclient: 'fetch', httpClient: 'fetch'
would be redundant.input
-property could be defined globallyI'm comparing Orval with https://github.com/kubb-labs/kubb. Kubb allows for global configurations and dedicated configurations for each output (plugin architecture).
For example, in kubb, I do the following:
The questions:
orval.config.ts
(from above), I have twoschemas
properties. I should probably only keep the first one, since insertingschemas
-properties later would unnecessarily recreate it, right?client
? What are the advantages and disadvantages?Beta Was this translation helpful? Give feedback.
All reactions