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

369
Views
¿Cómo puedo hacer que OpenApi Generator convierta Dictionary<int, string> correctamente?

En este momento, mi Api devuelve un modelo con una propiedad Dictionary<int, string> en él:

 public Dictionary<int, string> Subdivisions { get; set; }

Cuando ejecuto OpenApi Generator, la clase de salida tiene

 public Dictionary<string, string> Subdivisions { get; set; }

Sé que la especificación JSON no permite claves enteras, pero esto realmente arruina a los consumidores de esa API que esperan <int, string>.

¿Qué puedo hacer para asegurarme de que mi clase de salida tenga Dictionary<int, string> en lugar de Dictionary<string, string> ?

over 4 years ago · Santiago Trujillo
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!