Skip to content

["BUG"] Error creating a tag in Swagger #125

@luisfelipec95

Description

@luisfelipec95

Describe the bug
When attempting to create a tag, it shows the error: propKeyaccesserrorValue must be an integer.

To Reproduce
Steps to reproduce the behavior:

  1. Create a user with the eox-core endpoint `/eox-core/api/v1/user/
  2. Enable the following settings for the user created through the admin panel
  • Active
  • Staff Status
  • Superuser Status
  1. Add this to your tenant settings so we can tag users, enrollment objects, course overview objects, and set the current user as the owner_object:

"EOX_TAGGING_DEFINITIONS": [ { "access": "public", "owner_object": "site", "tag_type": "subscription_level", "validate_target_object": "user" }, { "access": "public", "owner_object": "site", "tag_type": "subscription_level_enrollment", "validate_target_object": "courseenrollment" }, { "access": "public", "owner_object": "site", "tag_type": "subscription_level_course", "validate_target_object": "OpaqueKeyProxyModel" }, { "access": "public", "owner_object": "user", "tag_type": "subscription_level_user", "validate_target_object": "user" } ]

  1. Go to https://tenant-a.sumac.releases.edunext.link/eox-tagging/api-docs/
  2. Create a tag with the post method

Expected behavior
Swagger can be used to execute the endpoints of eox-tagging.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions