@ng-openapi/http-resource 0.0.10 → 0.0.11-pr-18-feature-schema-validation-dbff16c.0
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.
- package/README.md +3 -1
- package/index.cjs +1 -0
- package/index.d.ts +3 -0
- package/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
## What is HTTP Resource Plugin?
|
|
24
24
|
|
|
25
|
-
The HTTP Resource plugin generates Angular services using the new **experimental** `httpResource` API instead of
|
|
25
|
+
The HTTP Resource plugin generates Angular services using the new **experimental** `httpResource` API instead of
|
|
26
|
+
traditional `HttpClient`. This provides automatic caching, state management, and reactive data loading for your OpenAPI
|
|
27
|
+
endpoints.
|
|
26
28
|
|
|
27
29
|
> ⚠️ **Experimental Feature**: `httpResource` is still experimental in Angular. Use with caution in production.
|
|
28
30
|
|
package/index.cjs
CHANGED
|
@@ -118,6 +118,7 @@ __name(escapeString, "escapeString");
|
|
|
118
118
|
// ../../shared/src/utils/functions/collect-used-types.ts
|
|
119
119
|
function collectUsedTypes(operations) {
|
|
120
120
|
const usedTypes = /* @__PURE__ */ new Set();
|
|
121
|
+
usedTypes.add("RequestOptions");
|
|
121
122
|
operations.forEach((operation) => {
|
|
122
123
|
operation.parameters?.forEach((param) => {
|
|
123
124
|
collectTypesFromSchema(param.schema || param, usedTypes);
|
package/index.d.ts
CHANGED
|
@@ -117,6 +117,9 @@ interface GeneratorConfig {
|
|
|
117
117
|
options: {
|
|
118
118
|
dateType: "string" | "Date";
|
|
119
119
|
enumStyle: "enum" | "union";
|
|
120
|
+
validation?: {
|
|
121
|
+
response?: boolean;
|
|
122
|
+
};
|
|
120
123
|
generateServices?: boolean;
|
|
121
124
|
generateEnumBasedOnDescription?: boolean;
|
|
122
125
|
customHeaders?: Record<string, string>;
|
package/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __name(escapeString, "escapeString");
|
|
|
84
84
|
// ../../shared/src/utils/functions/collect-used-types.ts
|
|
85
85
|
function collectUsedTypes(operations) {
|
|
86
86
|
const usedTypes = /* @__PURE__ */ new Set();
|
|
87
|
+
usedTypes.add("RequestOptions");
|
|
87
88
|
operations.forEach((operation) => {
|
|
88
89
|
operation.parameters?.forEach((param) => {
|
|
89
90
|
collectTypesFromSchema(param.schema || param, usedTypes);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-openapi/http-resource",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11-pr-18-feature-schema-validation-dbff16c.0",
|
|
4
4
|
"description": "HTTP Resource plugin for ng-openapi - Angular HTTP utilities with caching and state management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|