Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs schema files #83

Closed
koriym opened this issue Apr 6, 2019 · 6 comments
Closed

Needs schema files #83

koriym opened this issue Apr 6, 2019 · 6 comments

Comments

@koriym
Copy link
Contributor

koriym commented Apr 6, 2019

It would be great if we have schema files (XSD and JSONSchema). Not only the validator can check the validity but also It helps to complete input in the modern text editor.

@koriym
Copy link
Contributor Author

koriym commented Apr 6, 2019

@mamund I'm working to create JSONSchema for ALPS.

One question.

I found "type" : "descriptor" in the sample list on last in http://alps.io/spec/drafts/draft-01.html#prop-descriptor .

{ 
  "alps" : {
    "version" : "1.0",
    "doc" : {
      "href" : "http://example.org/samples/full/doc.html"
    },
    "descriptor" : [
      {
        "id" : "search", 
        "type" : "safe",
        "doc" : {"value" : 
          "A search form with a two inputs"
        },
        "descriptor" : [
          {
            "id" : "value",
            "name" : "search",
            "type" : "descriptor",
            "doc" : { "value" : "input for search" }
          },
          { "href" : "#resultType" }
        ]
      },
      {
        "id" : "resultType",
        "type" : "descriptor",
        "description" : {"value" : "results format"},
        "ext" : [
          {
            "href" : "http://alps.io/ext/range", 
            "value" : "summary,detail"
          }
        ]
      }
    ]  
  }
}            

but type should be either semantic, safe, idempotent or unsafe ?
http://alps.io/spec/drafts/draft-01.html#rfc.section.2.2.12

What is the type descriptor?

@mamund
Copy link
Member

mamund commented Apr 6, 2019 via email

@koriym
Copy link
Contributor Author

koriym commented Apr 6, 2019

Seems typo for me ...

@koriym
Copy link
Contributor Author

koriym commented Apr 6, 2019

Found PR (the year 2015) for this 😅
#76

mamund added a commit that referenced this issue Apr 6, 2019
Create JSON Schema file [#83]

i've merged this into master. it may need a bit of tweaking but is a great start. 

thanks.
@koriym
Copy link
Contributor Author

koriym commented Apr 6, 2019

@mamund You are welcome. Feel good that I could contribute your work at last. :)

@koriym koriym closed this as completed Apr 6, 2019
@mamund
Copy link
Member

mamund commented Apr 6, 2019

happy we are working on this together, too.

mamund added a commit that referenced this issue Nov 8, 2020
Create XSD Schema file [#83]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants