Skip to content

Commit

Permalink
[create-pull-request] automated change (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: henryiii <4616906+henryiii@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and henryiii committed Mar 25, 2024
1 parent cb37bf0 commit cad622e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"

[project]
name = "validate-pyproject-schema-store"
version = "2024.03.18"
version = "2024.03.25"
authors = [
{ name = "Henry Schreiner", email = "henryfs@princeton.edu" },
]
Expand Down
63 changes: 50 additions & 13 deletions src/validate_pyproject_schema_store/resources/poetry.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/partial-poetry.json",
"definitions": {
"poetry-name": {
"type": "string",
"description": "Package name."
},
"poetry-version": {
"type": "string",
"description": "Version of the package. It should follow semantic versioning, but it is not enforced."
},
"poetry-description": {
"type": "string",
"description": "Short package description.",
"pattern": "^[^\n]*$"
},
"poetry-author-pattern": {
"description": "Pattern that matches `Name <email>` like 'King Arthur' or 'Miss Islington &lt;miss-islington@python.org&gt;'.",
"type": "string",
Expand Down Expand Up @@ -431,25 +444,20 @@
},
"type": "object",
"additionalProperties": true,
"required": [
"name",
"version",
"description",
"authors"
],
"properties": {
"package-mode": {
"type": "boolean",
"description": "Whether Poetry operates in package mode or not.",
"default": true
},
"name": {
"type": "string",
"description": "Package name."
"$ref": "#/definitions/poetry-name"
},
"version": {
"type": "string",
"description": "Version of the package. It should follow semantic versioning, but it is not enforced."
"$ref": "#/definitions/poetry-version"
},
"description": {
"type": "string",
"description": "Short package description.",
"pattern": "^[^\n]*$"
"$ref": "#/definitions/poetry-description"
},
"keywords": {
"type": "array",
Expand Down Expand Up @@ -667,5 +675,34 @@
}
}
}
},
"if": {
"properties": {
"package-mode": {
"const": true
}
}
},
"then": {
"required": [
"name",
"version",
"description",
"authors"
],
"properties": {
"name": {
"$ref": "#/definitions/poetry-name"
},
"version": {
"$ref": "#/definitions/poetry-version"
},
"description": {
"$ref": "#/definitions/poetry-description"
},
"authors": {
"$ref": "#/definitions/poetry-authors"
}
}
}
}

0 comments on commit cad622e

Please sign in to comment.