我查看了json模式文档和示例,但没有看到生成器在json模型中创建的ID类型。羽毛示例 - 加上cli jsonschema
properties: {
// !code: schema_properties
id: { type: 'ID' },
email: {},
在jsonschema官方docs示例中,id被定义为
"properties": {
"id": {
"type": ["string", "integer"],
JSON Schema不允许这样做。
根据https://github.com/feathers-plus/generator-feathers-plus/tree/master/docs/json-schema的文件
Feathers模型基于JSON模式。
这告诉我他们的模型不是JSON Schema。
如果你想知道原因,你应该在他们的github回购上提出一个问题。