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

Bug: Cannot add a job offer if not using the enum value #20

Open
kapiaszczyk opened this issue Apr 20, 2024 · 0 comments
Open

Bug: Cannot add a job offer if not using the enum value #20

kapiaszczyk opened this issue Apr 20, 2024 · 0 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@kapiaszczyk
Copy link
Owner

When posting:

{
  "name": "Funny Architect",
  "shortDescription": "Exciting opportunity for software engineers!",
  "description": "We are looking for skilled software engineers to join our team.",
  "contractType": "full-time",
  "salary": 500,
  "salaryCurrency": "USD",
  "salaryType": "hourly",
  "experience": "senior",
  "operatingMode": "hybrid",
  "expiresAt": "2024-05-13T00:00:00Z",
  "companyId": 170,
  "addressId": 170,
  "technologies": {
    "1": "intermediate",
    "2": "intermediate",
    "3": "intermediate"
  }
}

to http://*/job-offer endpoint, the response is

{
    "timestamp": "2024-04-20T10:40:25.112+00:00",
    "status": 400,
    "error": "Bad Request",
    "path": "/job-offer"
}

and logged cause is

Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `com.kapia.jobboard.api.constants.ContractType` from String "full-time": not one of the values accepted for Enum class: [OTHER, TEMPORARY, B2B, PART_TIME, FULL_TIME, INTERNSHIP, CONTRACT]]
@kapiaszczyk kapiaszczyk added bug Something isn't working invalid This doesn't seem right labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant