Skip to content

使用typebox的default代替exampleProperties #584

@jy910222

Description

@jy910222

What problem does this feature solve?

使用typebox的default代替exampleProperties

原来是这样:

{
  metaData: {
   exampleProperties: {
      value: 'text',
   }
  },
  spec: {
    properties: Type.Object({
      value: Type.String({}),
    }),
  }
}

现在是这样:

{
  spec: {
    properties: Type.Object({
      value: Type.String({
	 default: 'text',
      }),
    }),
  }
}

进一步收敛

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions