I have the following entity in my XData-Server:
type
[Entity]
[Table('test')]
[Id('fid', TIdGenerator.IdentityOrSequence)]
TkdbTest = class
private
[Column('caption', [])]
Fcaption: string;
Fspecial: Integer;
[Column('id', [TColumnProp.Required, TColumnProp.NoInsert, TColumnProp.NoUpdate])]
Fid: Integer;
public
property caption: string read Fcaption write Fcaption;
[XDataProperty]
property special: Integer read Fspecial write Fspecial;
property id: Integer read Fid write Fid;
published
end;
With the [XDataProperty] attribute calling swaggerui fails. Without it works (but of course without the special property). Calling this url http://127.0.0.1:2001/v1/swaggerui#/ I get this error:
Fetch error
Internal Server Error http://127.0.0.1:2001/kdb/v1/openapi/swagger.json
Do I miss something or is this a bug?
Kind regards
Harald