Skip to content
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

Incorrect required Property in UsageCodeInterpreterSessionsResult #421

Open
philippzagar opened this issue Feb 19, 2025 · 0 comments
Open

Comments

@philippzagar
Copy link

The OpenAPI specification defines the following type:

UsageCodeInterpreterSessionsResult:
  type: object
  description: The aggregated code interpreter sessions usage details of the specific time bucket.
  properties:
    object:
      type: string
      enum:
        - organization.usage.code_interpreter_sessions.result
      x-stainless-const: true
    num_sessions:
      type: integer
      description: The number of code interpreter sessions.
    # ...
  required:
    - object
    - sessions     # doesn't exist!

However, the required sessions property does not exist in UsageCodeInterpreterSessionsResult. The only relevant property appears to be num_sessions, so it seems likely that this was an oversight.

Expected Behavior

The required section should reference num_sessions instead of sessions to align with the actual properties defined in UsageCodeInterpreterSessionsResult:

required:
  - object
  - num_sessions
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