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]: Can't convert to PHP #2663

Open
skeul opened this issue Nov 19, 2024 · 0 comments
Open

[BUG]: Can't convert to PHP #2663

skeul opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@skeul
Copy link

skeul commented Nov 19, 2024

Issue Type

Can't convert JSON to PHP code

Context (Environment, Version, Language)

Input Format: json schema
Output Language: PHP

CLI, npm, or app.quicktype.io: app.quicktype.io
Version: https://app.quicktype.io/

Description

Input Data

{
          "id": 3,
          "parametre": "param7",
          "valeur": "56.78",
          "matricule": "AZR",
          "date_application": "2023-10-07",
          "date_creation": "2023-10-07 18:00:00",
          "matricule_creation": "LUA",
          "libelle": "Libelle Param 7",
          "type_valeur": "decimal",
          "parametre_general": 0,
          "parametre_collaborateur": 1
    }

Expected Behaviour / Output

i wan't PHP output

class Parametres extends BaseModel
    {
....

}

Current Behaviour / Output

Error js in console :

Uncaught SyntaxError: expected expression, got '<' in mode-mode.js

Steps to Reproduce

  1. Paste input
  2. Switch language to PHP

Possible Solution

@skeul skeul added the bug label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant