Skip to content

Commit

Permalink
andOf -> oneOf
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebCourier committed May 8, 2024
1 parent a667451 commit f12f98e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions schemas/core/any-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/core-schemas/schemas/core/any-type.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "AnyType",
"anyOf": [
"oneOf": [
{
"$ref": "#/$defs/primitives"
},
Expand All @@ -15,7 +15,7 @@
],
"$defs": {
"primitives": {
"anyOf": [
"oneOf": [
{
"type": "boolean"
},
Expand All @@ -40,7 +40,7 @@
"arrays": {
"type": "array",
"items": {
"anyOf": [
"oneOf": [
{
"$ref": "#/$defs/primitives"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/core/call.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"default": {}
},
"exception": {
"anyOf": [
"oneOf": [
{
"type": "string"
},
Expand Down
4 changes: 2 additions & 2 deletions schemas/core/guard.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"$ref": "https://json-schema.org/draft/2020-12/schema"
},
"history": {
"anyOf": [
"oneOf": [
{
"type": "object",
"properties": {
Expand Down Expand Up @@ -64,7 +64,7 @@
},
"on": {
"description": "A reference to the property this validator should be applied against. Can be a valid JSON path or a meta-property such as \"prompt\" or \"output\"",
"anyOf": [
"oneOf": [
{
"type": "string",
"enum": [
Expand Down
6 changes: 3 additions & 3 deletions schemas/core/outputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "The string content from the LLM response."
},
"parsedOutput": {
"anyOf": [
"oneOf": [
{
"type": "string"
},
Expand All @@ -23,7 +23,7 @@
]
},
"validationResponse": {
"anyOf": [
"oneOf": [
{
"type": "string"
},
Expand All @@ -37,7 +37,7 @@
]
},
"guardedOutput": {
"anyOf": [
"oneOf": [
{
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/core/validation-outcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"validatedOutput": {
"description": "The validated, and potentially fixed, output from the LLM call after undergoing validation.",
"anyOf": [
"oneOf": [
{
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/core/validator-log.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"format": "kebab-case"
},
"instanceId": {
"anyOf": [
"oneOf": [
{
"type": "string"
},
Expand Down

0 comments on commit f12f98e

Please sign in to comment.