@tsed/schema 6.73.2 → 6.73.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,7 +79,7 @@ export declare class JsonEntityStore extends Entity implements JsonEntityStoreOp
79
79
  */
80
80
  static from<T extends JsonEntityStore = JsonEntityStore>(...args: any[]): NonNullable<T>;
81
81
  static fromMethod(target: any, propertyKey: string | symbol): JsonEntityStore;
82
- getResponseOptions(contentType?: string): undefined | any;
82
+ getResponseOptions(status: number, contentType?: string): undefined | any;
83
83
  /**
84
84
  * Check precondition between value, required and allowedRequiredValues to know if the entity is required.
85
85
  * @param value
package/lib/index.js CHANGED
@@ -2167,10 +2167,10 @@ class JsonEntityStore extends core.Entity {
2167
2167
  return this.from(target, propertyKey, core.descriptorOf(target, propertyKey));
2168
2168
  }
2169
2169
 
2170
- getResponseOptions(contentType = "application/json") {
2170
+ getResponseOptions(status, contentType = "application/json") {
2171
2171
  var _this$operation, _this$operation$getRe;
2172
2172
 
2173
- const media = (_this$operation = this.operation) == null ? void 0 : (_this$operation$getRe = _this$operation.getResponseOf(this.statusCode)) == null ? void 0 : _this$operation$getRe.getMedia(contentType, false);
2173
+ const media = (_this$operation = this.operation) == null ? void 0 : (_this$operation$getRe = _this$operation.getResponseOf(status)) == null ? void 0 : _this$operation$getRe.getMedia(contentType, false);
2174
2174
 
2175
2175
  if (media && media.has("schema")) {
2176
2176
  const schema = media.get("schema");