id: { type: 'ID' } 在官方 jsonschema 中定义的 feathers-plus cli 创建的 featherjs 模型中生成在哪里?
Where is id: { type: 'ID' } generated in in the featherjs models created by feathers-plus cli defined in the official jsonschema?
我查看了 json 架构文档和示例,但没有看到生成器在 json 模型中创建的 ID 类型。示例 feathers-plus cli jsonschema
properties: {
// !code: schema_properties
id: { type: 'ID' },
email: {},
在jsonschema 官方文档示例中,id 定义如下
"properties": {
"id": {
"type": ["string", "integer"],
JSON 架构不允许这样做。
根据 https://github.com/feathers-plus/generator-feathers-plus/tree/master/docs/json-schema
上的文档
Feathers Models are based on JSON-schema.
这让我觉得他们的模型不完全是 JSON 架构。
如果您想知道原因,您可能应该在他们的 github 回购协议中提出问题。
我查看了 json 架构文档和示例,但没有看到生成器在 json 模型中创建的 ID 类型。示例 feathers-plus cli jsonschema
properties: {
// !code: schema_properties
id: { type: 'ID' },
email: {},
在jsonschema 官方文档示例中,id 定义如下
"properties": {
"id": {
"type": ["string", "integer"],
JSON 架构不允许这样做。
根据 https://github.com/feathers-plus/generator-feathers-plus/tree/master/docs/json-schema
上的文档Feathers Models are based on JSON-schema.
这让我觉得他们的模型不完全是 JSON 架构。
如果您想知道原因,您可能应该在他们的 github 回购协议中提出问题。