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

Confusing schemas for themes #235

Closed
m-mohr opened this issue Apr 25, 2023 · 11 comments
Closed

Confusing schemas for themes #235

m-mohr opened this issue Apr 25, 2023 · 11 comments
Assignees

Comments

@pvretano
Copy link
Contributor

pvretano commented Apr 25, 2023

@m-mohr yeah, the examples are not quite up to date relative to the schemas. I have it on my todo list to update and augment them. Need to do a general validation of all example relative to the current state of the schemas.

@m-mohr
Copy link
Contributor Author

m-mohr commented Apr 25, 2023

@pvretano Thanks. The "good" schemas itself also have an issue, I think. Neither concepts nor scheme is required. I assume both should be required?

In the STAC extension I made the schema a bit more strict in general (doesn't need to get adopted to Records, just fyi):

{
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": [
              "concepts",
              "scheme"
            ],
            "properties": {
              "concepts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1
                    },
                    "description": {
                      "type": "string",
                      "minLength": 1
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              },
              "scheme": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        }

@pvretano
Copy link
Contributor

@m-mohr I'll have to check with the author of that schema about why concepts and scheme are not required. Not exactly sure why that is the case ... makes sense that they should be otherwise there is little distinction with keywords. Thanks for the heads up.

@pvretano pvretano assigned pvretano and tomkralidis and unassigned pvretano Apr 26, 2023
tomkralidis added a commit to tomkralidis/ogcapi-records that referenced this issue Apr 26, 2023
@tomkralidis
Copy link
Contributor

Thanks @m-mohr. PR in #237

pvretano added a commit that referenced this issue Apr 27, 2023
@m-mohr
Copy link
Contributor Author

m-mohr commented Apr 29, 2023

Great, the requirements are fixed. Now it's just open to clean-up some older files, right?

@tomkralidis
Copy link
Contributor

Thanks @m-mohr. Associated PR in #236.

@m-mohr
Copy link
Contributor Author

m-mohr commented Apr 30, 2023

@tomkralidis Thanks, but I don't see any changes in #236 to the two files mentioned in #235 (comment) ?!

@m-mohr
Copy link
Contributor Author

m-mohr commented Apr 30, 2023

Oh, I guess that's a typo and meant #246 :-)

@tomkralidis
Copy link
Contributor

Oops mea culpa, yes #246 :)

@tomkralidis
Copy link
Contributor

Given #246 is now merged, I think we can close this one @pvretano @m-mohr ?

@pvretano
Copy link
Contributor

pvretano commented May 7, 2023

Resolved by PR #246 ... closing. Create a new issue or re-open this one if something comes up.

@pvretano pvretano closed this as completed May 7, 2023
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

3 participants