小编use*_*015的帖子

json-schema:如何从一个 json-schema 转换到另一个

我有两种不同的json-schemas

schemaA -> 在http://json-schema.org/calendar定义的日历

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "A representation of an event",
    "type": "object",
    "required": [ "dtstart", "summary" ],
    "properties": {
        "dtstart": {
            "format": "date-time",
            "type": "string",
            "description": "Event starting time"
        },
        "dtend": {
            "format": "date-time",
            "type": "string",
            "description": "Event ending time"
        },
        "summary": { "type": "string" },
        "location": { "type": "string" },
        "url": { "type": "string", "format": "uri" },
        "duration": {
            "format": "time",
            "type": "string",
            "description": "Event duration"
        },
        "rdate": {
            "format": "date-time",
            "type": …
Run Code Online (Sandbox Code Playgroud)

javascript templates jsonschema json-ld

8
推荐指数
2
解决办法
9633
查看次数

标签 统计

javascript ×1

json-ld ×1

jsonschema ×1

templates ×1