buildingSMART / BCF-API

Web service specification for BIM Collaboration Format
Other
210 stars 61 forks source link

Errors when Adding OpenAPI Service Reverence #364

Open SSeelos opened 4 days ago

SSeelos commented 4 days ago

when i add the BCF-API swagger.json as an openAPI service reference in visual studio (.NET) i get compile errors from the generated code :/

image

image

GeorgDangl commented 4 days ago

Hey @SSeelos, thank you for raising this issue!

Can you also try the newer one for the planned next version: https://app.swaggerhub.com/apis/buildingSMART/BCF/4.0

It was reworked quite a bit.

Also, could you share some more information about the errors? But, generally, I think the built-in generators in Visual Studio are often a bit lacking, so you could also try e.g. NSwag or the official Swagger generator and see if you get better results that way.

SSeelos commented 1 day ago

Hi, thanks @GeorgDangl for the reply.

same thing with 4.0. visual studio uses NSwag by default.. heres a sample project where i just added the BCF swagger json as OpenAPI service reference: https://github.com/SSeelos/MyBCF.git

it seems to generate multiple partial classes with overlapping properties image