Skip to content

Commit

Permalink
Remove required fields in ShowGuesser
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Nov 7, 2024
1 parent b382cbd commit 0d8775a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const ShowGuesserView = (
return;
}
const resourceDefinition = schema.definitions?.[resource];
const requiredFields = resourceDefinition?.required || [];
if (!resourceDefinition || !resourceDefinition.properties) {
throw new Error(
`The resource ${resource} is not defined in the API schema`
Expand All @@ -71,7 +70,6 @@ export const ShowGuesserView = (
'string'
? resourceDefinition.properties![source].type
: 'string') as string,
requiredFields,
})
);
const inferredLayout = new InferredElement(
Expand Down

0 comments on commit 0d8775a

Please sign in to comment.