Skip to content

Commit

Permalink
Revert "fix(core): implement {} insterd of unknown for blank sche…
Browse files Browse the repository at this point in the history
…ma interface (orval-labs#1219)"

This reverts commit 97552e4.
  • Loading branch information
soartec-lab committed Feb 18, 2024
1 parent d5ccc8c commit 4128a8a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/core/src/getters/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,10 @@ export const getObject = ({
};
}

const useTypeOverInterfaces = context?.output.override?.useTypeOverInterfaces;
const blankValue =
item.type === 'object'
? '{ [key: string]: any }'
: useTypeOverInterfaces
? 'unknown'
: '{}';

return {
value: blankValue + nullable,
value:
(item.type === 'object' ? '{ [key: string]: any }' : 'unknown') +
nullable,
imports: [],
schemas: [],
isEnum: false,
Expand Down

0 comments on commit 4128a8a

Please sign in to comment.