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

Weird behaviour when property "period" is in json mock data #1521

Open
blackat opened this issue Feb 25, 2024 · 0 comments
Open

Weird behaviour when property "period" is in json mock data #1521

blackat opened this issue Feb 25, 2024 · 0 comments

Comments

@blackat
Copy link

blackat commented Feb 25, 2024

Hello,
I am using json-server 0.17.4 and I have setup some mock data like this one:

[
  {
    "symbol": "AAPL",
    "date": "2023-09-30",
    "period": "FY"
  }
]

and when I hit the corresponding url to test the return of mock data I get an empty array.

If I remove the property "period" everything works as expected.

Is period a reserved word in some way?

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