Skip to content

No matching AsyncAPI document found with channelId "gameupdates" and filename "asyncapi.yaml" #688

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

Open
SilkePilon opened this issue May 6, 2025 · 0 comments

Comments

@SilkePilon
Copy link

SilkePilon commented May 6, 2025

every time i try to use the AsyncAPI setup it gives me the following error:
No matching AsyncAPI document found with channelId "gameupdates" and filename "asyncapi.yaml"

Even tho the files do exist:

asyncapi: 3.0.0
info:
  title: Jotihunt Live WebSocket API
  version: 1.0.0
  description: Real-time updates and chat API for Jotihunt events

servers:
  production:
    host: api.jotihunt.live
    protocol: wss
    description: Production WebSocket server

channels:
  gameupdates:
    title: Game Updates
    description: >-
      Channel for receiving real-time game updates including hints, assignments, and news articles.
      
      * Receive instant updates about new hints and assignments
      * Get notified about new articles and announcements
      * All messages include timestamps for synchronization
    address: gameupdates
    messages:
      gameUpdate:
        $ref: '#/components/messages/GameUpdate'
  
  articleChat:
    title: Article Chat
    description: >-
      Channel for users to discuss articles and collaborate in real-time.
      
      * Chat with other users about specific articles
      * Support for threaded replies
      * Real-time message delivery
    address: articleChat
    messages:
      chatMessage:
        $ref: '#/components/messages/ChatMessage'

operations:
  receiveGameUpdates:
    action: receive
    channel:
      $ref: '#/channels/gameupdates'
    messages:
      - $ref: '#/channels/gameupdates/messages/gameUpdate'
  
  receiveChatMessages:
    action: receive
    channel:
      $ref: '#/channels/articleChat'
    messages:
      - $ref: '#/channels/articleChat/messages/chatMessage'
  
  sendChatMessage:
    action: send
    channel:
      $ref: '#/channels/articleChat'
    messages:
      - $ref: '#/channels/articleChat/messages/chatMessage'

components:
  messages:
    GameUpdate:
      title: Game Update Message
      description: Message containing game updates, hints, assignments, or articles
      payload:
        $ref: '#/components/schemas/GameUpdate'
    
    ChatMessage:
      title: Chat Message
      description: Message for article discussions
      payload:
        $ref: '#/components/schemas/ChatMessage'
  
  schemas:
    GameUpdate:
      type: object
      properties:
        type:
          type: string
          enum: [hint, assignment, article]
          description: The type of update
        data:
          type: object
          properties:
            id:
              type: string
              description: Unique identifier for the update
            title:
              type: string
              description: Title of the article or assignment
            content:
              type: string
              description: Main content of the update
            area:
              type: string
              description: Target area for hints
            points:
              type: integer
              description: Points awarded for assignments
            category:
              type: string
              enum: [news, hint, announcement]
              description: Category for articles
          required:
            - id
            - content
        timestamp:
          type: string
          format: date-time
          description: Time when the update was created
      required:
        - type
        - data
        - timestamp
    
    ChatMessage:
      type: object
      properties:
        type:
          type: string
          const: chat
          description: Message type identifier
        data:
          type: object
          properties:
            articleId:
              type: string
              description: ID of the article being discussed
            userId:
              type: string
              description: ID of the user sending the message
            username:
              type: string
              description: Display name of the user
            message:
              type: string
              description: The chat message content
            replyTo:
              type: string
              description: ID of the message being replied to (optional)
          required:
            - articleId
            - userId
            - username
            - message
        timestamp:
          type: string
          format: date-time
          description: Time when the message was sent
      required:
        - type
        - data
        - timestamp

Markdown file (.mdx)

---
title: "Playground"
description: "Enable users to interact with your websockets"
asyncapi: "/asyncapi.yaml gameupdates"
---
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

1 participant