Hi Devs, Is there a data type in swagger (and supported by msf4j) which we can use to represent sensitive data such as password ? Using strings are not an option because when a microservice is generated from the generator, the password will be represented as a string in the service side which in return will be a security issue.
I have tried to represent the password as a byte array as below and generated the msf4j service. The generated code represents the password as List<byte[]> but got an error: 'Error in executing request: POST'. password: type: array items: type: string format: byte As per the discussion in [1] it was suggested to use '@Context Request' as the API parameter and process the request as a byte buffer. In that case, is it possible to represent the 'Request' as a parameter in the swagger definition ? Appreciate your thoughts on this. [1] - [Dev] Use char array as micro service parameter Thanks, Omindu. -- Omindu Rathnaweera Senior Software Engineer, WSO2 Inc. Mobile: +94 771 197 211
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
