Skip to content

Commit

Permalink
fix: 修正未考虑属性自身必填的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed Apr 16, 2024
1 parent ffb7ce3 commit 569c817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parsers/ComponentsParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export class ComponentsParser extends BaseParser {
...this.inheritProps(schema),
name,
type,
required,
// {type: 'string', required: true}
required: (schema.required as boolean | undefined) || required,
kind: 'origin',
};
}
Expand Down

0 comments on commit 569c817

Please sign in to comment.