Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
Por qué Swagger javascript ref funciona en esquemas

Tengo dos esquemas en mi aplicación, y eso es como json dentro de otro json, así que lo intento

 /** * @swagger * components: * schemas: * IlistItens: * type: object * required: * - name * - isChecked * - tagColor * properties: * name: * type: string * description: name of task * isChecked: * type: boolean * description: check to finish task * tagColor: * type: HexColor * description: Color of task * exemple: * name: Finish the Job * isChecked: false * tagColor: #0099ff */

Y trato de usar una referencia en mi segunda interface .

 /** * @swagger * components: * schemas: * ICardList: * type: object * required: * - title * - listItens * properties: * title: * type: string * description: Title of List * listItens: * type: * $ref: '#/components/schemas/IListItens' * exemple: * title: List Title * listItens: {"name": "Task to do", "isChecked": false, "color": "#0099ff"} */

pero cada $ref: '#/components/schemas/IListItens' devuelve un mensaje de error como Could not resolve reference: #/components/schemas/IListItens y busco una solución y leo la mayor parte del foro, no puedo encontrar la solución. ¿Que hice mal?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!