Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

schema/TelegramNotificationRuleBase - property channel listed as required is not defined

Aperta
#560 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
openapi, yaml
Ambito
api

Direzione di ricerca

Inizia da TelegramNotificationRuleBase.yml e confronta le sezioni required e properties, quindi leggi NotificationRuleBase.yml per verificare come viene modellato endpointID. Verifica i campi channel e connection previsti rispetto alla firma telegram.message di Flux a cui si fa riferimento; il lavoro è completato quando lo schema è internamente coerente e la validazione OpenAPI ha esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The property channel listed as required is not listed under property definitions.

TelegramNotificationRuleBase.yml

type: object
  required: [type, messageTemplate, channel]
  properties:
    type:
      description: The discriminator between other types of notification rules is "telegram".
      type: string
      enum: [telegram]
    messageTemplate:
      description: The message template as a flux interpolated string.
      type: string
    parseMode:
      description: Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options. Defaults to "MarkdownV2".
      type: string
      enum:
        - MarkdownV2
        - HTML
        - Markdown
    disableWebPagePreview:
      description: Disables preview of web links in the sent messages when "true". Defaults to "false".
      type: boolean

BTW: if the connection and sending of a notification is handled by the NotificationEndpoint defined as endpointID in NotificationRuleBase.yml, is it necessary to have the connection defining properties defined in the rule?

NOTE: In the flux documentation the telegram.message function signature includes a channel argument.
https://docs.influxdata.com/flux/v0.x/stdlib/contrib/sranka/telegram/message/

channel
text
token
?disableWebPagePreview
?parseMode
?silent
?url

Latest commit in openapi

commit ad64ba87e7dd666feb80bbb85d1757b3d290d6c3 (HEAD -> master, origin/master, origin/HEAD)
Author: wiedld <wiedld@users.noreply.github.com>
Date:   Thu Sep 22 10:01:37 2022 -0700

Testing in K8SIDPE - latest commit

commit d3c2922e6c43cc6d7708a1622d6d2d7b1943b769 (HEAD -> master, origin/master, origin/HEAD)
Author: influx-acs[bot] <107396960+influx-acs[bot]@users.noreply.github.com>
Date:   Tue Sep 27 01:45:24 2022 +0000
Lingua principale
Shell
Stelle
18
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di influxdata/openapi

Tutte le issue di influxdata/openapi

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.