Skip to content

Commit

Permalink
Merge pull request #622 from ripienaar/consumer_clarify
Browse files Browse the repository at this point in the history
Clarify consumer config
  • Loading branch information
ripienaar authored Jan 27, 2025
2 parents ce931af + 8019d5f commit 62a6bf0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 36 deletions.
8 changes: 2 additions & 6 deletions schema_source/jetstream/api/v1/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,7 @@
}
},
"consumer_configuration": {
"required":[
"deliver_policy",
"ack_policy",
"replay_policy"
],
"required":[],
"allOf": [{"$ref": "#/definitions/deliver_policy"}],
"properties": {
"durable_name": {
Expand All @@ -715,7 +711,7 @@
"default": "all"
},
"deliver_subject": {
"description": "The subject to delivery messages to",
"description": "The subject push consumers delivery messages to",
"type": "string",
"minLength": 1
},
Expand Down
8 changes: 2 additions & 6 deletions schemas/jetstream/api/v1/consumer_configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"description": "The data structure that describe the configuration of a NATS JetStream Consumer",
"title": "io.nats.jetstream.api.v1.consumer_configuration",
"type": "object",
"required": [
"deliver_policy",
"ack_policy",
"replay_policy"
],
"required": [],
"allOf": [
{
"oneOf": [
Expand Down Expand Up @@ -139,7 +135,7 @@
"default": "all"
},
"deliver_subject": {
"description": "The subject to delivery messages to",
"description": "The subject push consumers delivery messages to",
"type": "string",
"minLength": 1
},
Expand Down
8 changes: 2 additions & 6 deletions schemas/jetstream/api/v1/consumer_create_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
"config": {
"type": "object",
"description": "The consumer configuration",
"required": [
"deliver_policy",
"ack_policy",
"replay_policy"
],
"required": [],
"allOf": [
{
"oneOf": [
Expand Down Expand Up @@ -151,7 +147,7 @@
"default": "all"
},
"deliver_subject": {
"description": "The subject to delivery messages to",
"description": "The subject push consumers delivery messages to",
"type": "string",
"minLength": 1
},
Expand Down
8 changes: 2 additions & 6 deletions schemas/jetstream/api/v1/consumer_create_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@
"format": "date-time"
},
"config": {
"required": [
"deliver_policy",
"ack_policy",
"replay_policy"
],
"required": [],
"allOf": [
{
"oneOf": [
Expand Down Expand Up @@ -173,7 +169,7 @@
"default": "all"
},
"deliver_subject": {
"description": "The subject to delivery messages to",
"description": "The subject push consumers delivery messages to",
"type": "string",
"minLength": 1
},
Expand Down
8 changes: 2 additions & 6 deletions schemas/jetstream/api/v1/consumer_info_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@
"format": "date-time"
},
"config": {
"required": [
"deliver_policy",
"ack_policy",
"replay_policy"
],
"required": [],
"allOf": [
{
"oneOf": [
Expand Down Expand Up @@ -173,7 +169,7 @@
"default": "all"
},
"deliver_subject": {
"description": "The subject to delivery messages to",
"description": "The subject push consumers delivery messages to",
"type": "string",
"minLength": 1
},
Expand Down
8 changes: 2 additions & 6 deletions schemas/jetstream/api/v1/consumer_list_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@
"format": "date-time"
},
"config": {
"required": [
"deliver_policy",
"ack_policy",
"replay_policy"
],
"required": [],
"allOf": [
{
"oneOf": [
Expand Down Expand Up @@ -238,7 +234,7 @@
"default": "all"
},
"deliver_subject": {
"description": "The subject to delivery messages to",
"description": "The subject push consumers delivery messages to",
"type": "string",
"minLength": 1
},
Expand Down

0 comments on commit 62a6bf0

Please sign in to comment.