doc-detective-common 3.1.2-dev.2 → 3.1.2-dev.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.
- package/dist/schemas/config_v3.schema.json +1333 -45
- package/dist/schemas/loadCookie_v3.schema.json +225 -0
- package/dist/schemas/report_v3.schema.json +1321 -43
- package/dist/schemas/resolvedTests_v3.schema.json +2642 -76
- package/dist/schemas/saveCookie_v3.schema.json +251 -0
- package/dist/schemas/spec_v3.schema.json +1321 -43
- package/dist/schemas/step_v3.schema.json +639 -0
- package/dist/schemas/test_v3.schema.json +1321 -43
- package/package.json +5 -5
- package/src/schemas/build/config_v3.schema.json +2 -0
- package/src/schemas/build/loadCookie_v3.schema.json +134 -0
- package/src/schemas/build/saveCookie_v3.schema.json +149 -0
- package/src/schemas/build/step_v3.schema.json +59 -0
- package/src/schemas/dereferenceSchemas.js +2 -0
- package/src/schemas/output_schemas/config_v3.schema.json +1333 -45
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +225 -0
- package/src/schemas/output_schemas/report_v3.schema.json +1321 -43
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +2642 -76
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +251 -0
- package/src/schemas/output_schemas/spec_v3.schema.json +1321 -43
- package/src/schemas/output_schemas/step_v3.schema.json +639 -0
- package/src/schemas/output_schemas/test_v3.schema.json +1321 -43
- package/src/schemas/schemas.json +8810 -7
- package/src/schemas/src_schemas/config_v3.schema.json +2 -0
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +109 -0
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +122 -0
- package/src/schemas/src_schemas/step_v3.schema.json +55 -0
|
@@ -3753,6 +3753,328 @@
|
|
|
3753
3753
|
}
|
|
3754
3754
|
]
|
|
3755
3755
|
},
|
|
3756
|
+
{
|
|
3757
|
+
"allOf": [
|
|
3758
|
+
{
|
|
3759
|
+
"type": "object",
|
|
3760
|
+
"dynamicDefaults": {
|
|
3761
|
+
"stepId": "uuid"
|
|
3762
|
+
},
|
|
3763
|
+
"properties": {
|
|
3764
|
+
"$schema": {
|
|
3765
|
+
"description": "JSON Schema for this object.",
|
|
3766
|
+
"type": "string",
|
|
3767
|
+
"enum": [
|
|
3768
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
3769
|
+
]
|
|
3770
|
+
},
|
|
3771
|
+
"stepId": {
|
|
3772
|
+
"type": "string",
|
|
3773
|
+
"description": "ID of the step."
|
|
3774
|
+
},
|
|
3775
|
+
"description": {
|
|
3776
|
+
"type": "string",
|
|
3777
|
+
"description": "Description of the step."
|
|
3778
|
+
},
|
|
3779
|
+
"unsafe": {
|
|
3780
|
+
"type": "boolean",
|
|
3781
|
+
"description": "Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.",
|
|
3782
|
+
"default": false
|
|
3783
|
+
},
|
|
3784
|
+
"outputs": {
|
|
3785
|
+
"type": "object",
|
|
3786
|
+
"description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
|
|
3787
|
+
"default": {},
|
|
3788
|
+
"patternProperties": {
|
|
3789
|
+
"^[A-Za-z0-9_]+$": {
|
|
3790
|
+
"type": "string",
|
|
3791
|
+
"description": "Runtime expression for a user-defined output value."
|
|
3792
|
+
}
|
|
3793
|
+
},
|
|
3794
|
+
"title": "Outputs (step)"
|
|
3795
|
+
},
|
|
3796
|
+
"variables": {
|
|
3797
|
+
"type": "object",
|
|
3798
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
3799
|
+
"default": {},
|
|
3800
|
+
"patternProperties": {
|
|
3801
|
+
"^[A-Za-z0-9_]+$": {
|
|
3802
|
+
"type": "string",
|
|
3803
|
+
"description": "Runtime expression for a user-defined output value."
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
"title": "Variables (step)"
|
|
3807
|
+
},
|
|
3808
|
+
"breakpoint": {
|
|
3809
|
+
"type": "boolean",
|
|
3810
|
+
"description": "Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.",
|
|
3811
|
+
"default": false
|
|
3812
|
+
}
|
|
3813
|
+
},
|
|
3814
|
+
"title": "Common"
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
"type": "object",
|
|
3818
|
+
"required": [
|
|
3819
|
+
"saveCookie"
|
|
3820
|
+
],
|
|
3821
|
+
"properties": {
|
|
3822
|
+
"saveCookie": {
|
|
3823
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3824
|
+
"title": "saveCookie",
|
|
3825
|
+
"description": "Save a specific browser cookie to a file or environment variable for later reuse.",
|
|
3826
|
+
"anyOf": [
|
|
3827
|
+
{
|
|
3828
|
+
"type": "string",
|
|
3829
|
+
"title": "Cookie name",
|
|
3830
|
+
"description": "Name of the specific cookie to save. Will be saved to a default file path or environment variable.",
|
|
3831
|
+
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
3832
|
+
"transform": [
|
|
3833
|
+
"trim"
|
|
3834
|
+
]
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"type": "object",
|
|
3838
|
+
"additionalProperties": false,
|
|
3839
|
+
"properties": {
|
|
3840
|
+
"$schema": {
|
|
3841
|
+
"description": "Optional self-describing schema URI for linters",
|
|
3842
|
+
"type": "string",
|
|
3843
|
+
"format": "uri-reference"
|
|
3844
|
+
},
|
|
3845
|
+
"name": {
|
|
3846
|
+
"type": "string",
|
|
3847
|
+
"title": "Cookie name",
|
|
3848
|
+
"description": "Name of the specific cookie to save.",
|
|
3849
|
+
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
3850
|
+
"transform": [
|
|
3851
|
+
"trim"
|
|
3852
|
+
]
|
|
3853
|
+
},
|
|
3854
|
+
"variable": {
|
|
3855
|
+
"type": "string",
|
|
3856
|
+
"title": "Environment variable name",
|
|
3857
|
+
"description": "Environment variable name to store the cookie as JSON string.",
|
|
3858
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
3859
|
+
"transform": [
|
|
3860
|
+
"trim"
|
|
3861
|
+
]
|
|
3862
|
+
},
|
|
3863
|
+
"path": {
|
|
3864
|
+
"type": "string",
|
|
3865
|
+
"title": "Cookie file path",
|
|
3866
|
+
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
3867
|
+
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
3868
|
+
"transform": [
|
|
3869
|
+
"trim"
|
|
3870
|
+
]
|
|
3871
|
+
},
|
|
3872
|
+
"directory": {
|
|
3873
|
+
"type": "string",
|
|
3874
|
+
"title": "Directory path",
|
|
3875
|
+
"description": "Directory to save the cookie file. If not specified, uses output directory.",
|
|
3876
|
+
"transform": [
|
|
3877
|
+
"trim"
|
|
3878
|
+
]
|
|
3879
|
+
},
|
|
3880
|
+
"overwrite": {
|
|
3881
|
+
"type": "boolean",
|
|
3882
|
+
"title": "Overwrite existing file",
|
|
3883
|
+
"description": "Whether to overwrite existing cookie file.",
|
|
3884
|
+
"default": false
|
|
3885
|
+
},
|
|
3886
|
+
"domain": {
|
|
3887
|
+
"type": "string",
|
|
3888
|
+
"title": "Cookie domain",
|
|
3889
|
+
"description": "Specific domain to filter the cookie by (optional).",
|
|
3890
|
+
"transform": [
|
|
3891
|
+
"trim"
|
|
3892
|
+
]
|
|
3893
|
+
}
|
|
3894
|
+
},
|
|
3895
|
+
"required": [
|
|
3896
|
+
"name"
|
|
3897
|
+
],
|
|
3898
|
+
"anyOf": [
|
|
3899
|
+
{
|
|
3900
|
+
"required": [
|
|
3901
|
+
"path"
|
|
3902
|
+
],
|
|
3903
|
+
"not": {
|
|
3904
|
+
"required": [
|
|
3905
|
+
"variable"
|
|
3906
|
+
]
|
|
3907
|
+
}
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"required": [
|
|
3911
|
+
"variable"
|
|
3912
|
+
],
|
|
3913
|
+
"not": {
|
|
3914
|
+
"anyOf": [
|
|
3915
|
+
{
|
|
3916
|
+
"required": [
|
|
3917
|
+
"path"
|
|
3918
|
+
]
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
"required": [
|
|
3922
|
+
"directory"
|
|
3923
|
+
]
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
"required": [
|
|
3927
|
+
"overwrite"
|
|
3928
|
+
]
|
|
3929
|
+
}
|
|
3930
|
+
]
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3933
|
+
],
|
|
3934
|
+
"title": "Save cookie (detailed)"
|
|
3935
|
+
}
|
|
3936
|
+
],
|
|
3937
|
+
"components": {
|
|
3938
|
+
"schemas": {
|
|
3939
|
+
"string": {
|
|
3940
|
+
"type": "string",
|
|
3941
|
+
"title": "Cookie name",
|
|
3942
|
+
"description": "Name of the specific cookie to save. Will be saved to a default file path or environment variable.",
|
|
3943
|
+
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
3944
|
+
"transform": [
|
|
3945
|
+
"trim"
|
|
3946
|
+
]
|
|
3947
|
+
},
|
|
3948
|
+
"object": {
|
|
3949
|
+
"type": "object",
|
|
3950
|
+
"additionalProperties": false,
|
|
3951
|
+
"properties": {
|
|
3952
|
+
"$schema": {
|
|
3953
|
+
"description": "Optional self-describing schema URI for linters",
|
|
3954
|
+
"type": "string",
|
|
3955
|
+
"format": "uri-reference"
|
|
3956
|
+
},
|
|
3957
|
+
"name": {
|
|
3958
|
+
"type": "string",
|
|
3959
|
+
"title": "Cookie name",
|
|
3960
|
+
"description": "Name of the specific cookie to save.",
|
|
3961
|
+
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
3962
|
+
"transform": [
|
|
3963
|
+
"trim"
|
|
3964
|
+
]
|
|
3965
|
+
},
|
|
3966
|
+
"variable": {
|
|
3967
|
+
"type": "string",
|
|
3968
|
+
"title": "Environment variable name",
|
|
3969
|
+
"description": "Environment variable name to store the cookie as JSON string.",
|
|
3970
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
3971
|
+
"transform": [
|
|
3972
|
+
"trim"
|
|
3973
|
+
]
|
|
3974
|
+
},
|
|
3975
|
+
"path": {
|
|
3976
|
+
"type": "string",
|
|
3977
|
+
"title": "Cookie file path",
|
|
3978
|
+
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
3979
|
+
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
3980
|
+
"transform": [
|
|
3981
|
+
"trim"
|
|
3982
|
+
]
|
|
3983
|
+
},
|
|
3984
|
+
"directory": {
|
|
3985
|
+
"type": "string",
|
|
3986
|
+
"title": "Directory path",
|
|
3987
|
+
"description": "Directory to save the cookie file. If not specified, uses output directory.",
|
|
3988
|
+
"transform": [
|
|
3989
|
+
"trim"
|
|
3990
|
+
]
|
|
3991
|
+
},
|
|
3992
|
+
"overwrite": {
|
|
3993
|
+
"type": "boolean",
|
|
3994
|
+
"title": "Overwrite existing file",
|
|
3995
|
+
"description": "Whether to overwrite existing cookie file.",
|
|
3996
|
+
"default": false
|
|
3997
|
+
},
|
|
3998
|
+
"domain": {
|
|
3999
|
+
"type": "string",
|
|
4000
|
+
"title": "Cookie domain",
|
|
4001
|
+
"description": "Specific domain to filter the cookie by (optional).",
|
|
4002
|
+
"transform": [
|
|
4003
|
+
"trim"
|
|
4004
|
+
]
|
|
4005
|
+
}
|
|
4006
|
+
},
|
|
4007
|
+
"required": [
|
|
4008
|
+
"name"
|
|
4009
|
+
],
|
|
4010
|
+
"anyOf": [
|
|
4011
|
+
{
|
|
4012
|
+
"required": [
|
|
4013
|
+
"path"
|
|
4014
|
+
],
|
|
4015
|
+
"not": {
|
|
4016
|
+
"required": [
|
|
4017
|
+
"variable"
|
|
4018
|
+
]
|
|
4019
|
+
}
|
|
4020
|
+
},
|
|
4021
|
+
{
|
|
4022
|
+
"required": [
|
|
4023
|
+
"variable"
|
|
4024
|
+
],
|
|
4025
|
+
"not": {
|
|
4026
|
+
"anyOf": [
|
|
4027
|
+
{
|
|
4028
|
+
"required": [
|
|
4029
|
+
"path"
|
|
4030
|
+
]
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
"required": [
|
|
4034
|
+
"directory"
|
|
4035
|
+
]
|
|
4036
|
+
},
|
|
4037
|
+
{
|
|
4038
|
+
"required": [
|
|
4039
|
+
"overwrite"
|
|
4040
|
+
]
|
|
4041
|
+
}
|
|
4042
|
+
]
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
4045
|
+
],
|
|
4046
|
+
"title": "Save cookie (detailed)"
|
|
4047
|
+
}
|
|
4048
|
+
}
|
|
4049
|
+
},
|
|
4050
|
+
"examples": [
|
|
4051
|
+
"session_token",
|
|
4052
|
+
{
|
|
4053
|
+
"name": "auth_cookie",
|
|
4054
|
+
"path": "auth-cookie.txt"
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"name": "session_token",
|
|
4058
|
+
"variable": "SESSION_TOKEN"
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
"name": "user_session",
|
|
4062
|
+
"path": "user-session.txt",
|
|
4063
|
+
"directory": "./test-data",
|
|
4064
|
+
"overwrite": true
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"name": "login_token",
|
|
4068
|
+
"path": "login-token.txt",
|
|
4069
|
+
"domain": "app.example.com"
|
|
4070
|
+
}
|
|
4071
|
+
]
|
|
4072
|
+
}
|
|
4073
|
+
},
|
|
4074
|
+
"title": "saveCookie"
|
|
4075
|
+
}
|
|
4076
|
+
]
|
|
4077
|
+
},
|
|
3756
4078
|
{
|
|
3757
4079
|
"allOf": [
|
|
3758
4080
|
{
|
|
@@ -4090,6 +4412,302 @@
|
|
|
4090
4412
|
}
|
|
4091
4413
|
]
|
|
4092
4414
|
},
|
|
4415
|
+
{
|
|
4416
|
+
"allOf": [
|
|
4417
|
+
{
|
|
4418
|
+
"type": "object",
|
|
4419
|
+
"dynamicDefaults": {
|
|
4420
|
+
"stepId": "uuid"
|
|
4421
|
+
},
|
|
4422
|
+
"properties": {
|
|
4423
|
+
"$schema": {
|
|
4424
|
+
"description": "JSON Schema for this object.",
|
|
4425
|
+
"type": "string",
|
|
4426
|
+
"enum": [
|
|
4427
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
4428
|
+
]
|
|
4429
|
+
},
|
|
4430
|
+
"stepId": {
|
|
4431
|
+
"type": "string",
|
|
4432
|
+
"description": "ID of the step."
|
|
4433
|
+
},
|
|
4434
|
+
"description": {
|
|
4435
|
+
"type": "string",
|
|
4436
|
+
"description": "Description of the step."
|
|
4437
|
+
},
|
|
4438
|
+
"unsafe": {
|
|
4439
|
+
"type": "boolean",
|
|
4440
|
+
"description": "Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.",
|
|
4441
|
+
"default": false
|
|
4442
|
+
},
|
|
4443
|
+
"outputs": {
|
|
4444
|
+
"type": "object",
|
|
4445
|
+
"description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
|
|
4446
|
+
"default": {},
|
|
4447
|
+
"patternProperties": {
|
|
4448
|
+
"^[A-Za-z0-9_]+$": {
|
|
4449
|
+
"type": "string",
|
|
4450
|
+
"description": "Runtime expression for a user-defined output value."
|
|
4451
|
+
}
|
|
4452
|
+
},
|
|
4453
|
+
"title": "Outputs (step)"
|
|
4454
|
+
},
|
|
4455
|
+
"variables": {
|
|
4456
|
+
"type": "object",
|
|
4457
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
4458
|
+
"default": {},
|
|
4459
|
+
"patternProperties": {
|
|
4460
|
+
"^[A-Za-z0-9_]+$": {
|
|
4461
|
+
"type": "string",
|
|
4462
|
+
"description": "Runtime expression for a user-defined output value."
|
|
4463
|
+
}
|
|
4464
|
+
},
|
|
4465
|
+
"title": "Variables (step)"
|
|
4466
|
+
},
|
|
4467
|
+
"breakpoint": {
|
|
4468
|
+
"type": "boolean",
|
|
4469
|
+
"description": "Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.",
|
|
4470
|
+
"default": false
|
|
4471
|
+
}
|
|
4472
|
+
},
|
|
4473
|
+
"title": "Common"
|
|
4474
|
+
},
|
|
4475
|
+
{
|
|
4476
|
+
"title": "loadCookie",
|
|
4477
|
+
"type": "object",
|
|
4478
|
+
"required": [
|
|
4479
|
+
"loadCookie"
|
|
4480
|
+
],
|
|
4481
|
+
"properties": {
|
|
4482
|
+
"loadCookie": {
|
|
4483
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4484
|
+
"title": "loadCookie",
|
|
4485
|
+
"description": "Load a specific cookie from a file or environment variable into the browser.",
|
|
4486
|
+
"anyOf": [
|
|
4487
|
+
{
|
|
4488
|
+
"type": "string",
|
|
4489
|
+
"title": "Cookie name or file path",
|
|
4490
|
+
"description": "Name of the specific cookie to load from default location, or file path to cookie file.",
|
|
4491
|
+
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
4492
|
+
"transform": [
|
|
4493
|
+
"trim"
|
|
4494
|
+
]
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
"type": "object",
|
|
4498
|
+
"additionalProperties": false,
|
|
4499
|
+
"required": [
|
|
4500
|
+
"name"
|
|
4501
|
+
],
|
|
4502
|
+
"anyOf": [
|
|
4503
|
+
{
|
|
4504
|
+
"required": [
|
|
4505
|
+
"path"
|
|
4506
|
+
],
|
|
4507
|
+
"not": {
|
|
4508
|
+
"required": [
|
|
4509
|
+
"variable"
|
|
4510
|
+
]
|
|
4511
|
+
}
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
"required": [
|
|
4515
|
+
"variable"
|
|
4516
|
+
],
|
|
4517
|
+
"not": {
|
|
4518
|
+
"anyOf": [
|
|
4519
|
+
{
|
|
4520
|
+
"required": [
|
|
4521
|
+
"path"
|
|
4522
|
+
]
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
"required": [
|
|
4526
|
+
"directory"
|
|
4527
|
+
]
|
|
4528
|
+
}
|
|
4529
|
+
]
|
|
4530
|
+
}
|
|
4531
|
+
}
|
|
4532
|
+
],
|
|
4533
|
+
"properties": {
|
|
4534
|
+
"$schema": {
|
|
4535
|
+
"description": "Optional self-describing schema URI for linters",
|
|
4536
|
+
"type": "string",
|
|
4537
|
+
"format": "uri-reference"
|
|
4538
|
+
},
|
|
4539
|
+
"name": {
|
|
4540
|
+
"type": "string",
|
|
4541
|
+
"title": "Cookie name",
|
|
4542
|
+
"description": "Name of the specific cookie to load.",
|
|
4543
|
+
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
4544
|
+
"transform": [
|
|
4545
|
+
"trim"
|
|
4546
|
+
]
|
|
4547
|
+
},
|
|
4548
|
+
"variable": {
|
|
4549
|
+
"type": "string",
|
|
4550
|
+
"title": "Environment variable name",
|
|
4551
|
+
"description": "Environment variable name containing the cookie as JSON string.",
|
|
4552
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
4553
|
+
"transform": [
|
|
4554
|
+
"trim"
|
|
4555
|
+
]
|
|
4556
|
+
},
|
|
4557
|
+
"path": {
|
|
4558
|
+
"type": "string",
|
|
4559
|
+
"title": "Cookie file path",
|
|
4560
|
+
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
4561
|
+
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4562
|
+
"transform": [
|
|
4563
|
+
"trim"
|
|
4564
|
+
]
|
|
4565
|
+
},
|
|
4566
|
+
"directory": {
|
|
4567
|
+
"type": "string",
|
|
4568
|
+
"title": "Directory path",
|
|
4569
|
+
"description": "Directory containing the cookie file.",
|
|
4570
|
+
"transform": [
|
|
4571
|
+
"trim"
|
|
4572
|
+
]
|
|
4573
|
+
},
|
|
4574
|
+
"domain": {
|
|
4575
|
+
"type": "string",
|
|
4576
|
+
"title": "Cookie domain",
|
|
4577
|
+
"description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
|
|
4578
|
+
"transform": [
|
|
4579
|
+
"trim"
|
|
4580
|
+
]
|
|
4581
|
+
}
|
|
4582
|
+
},
|
|
4583
|
+
"title": "Load cookie (detailed)"
|
|
4584
|
+
}
|
|
4585
|
+
],
|
|
4586
|
+
"components": {
|
|
4587
|
+
"schemas": {
|
|
4588
|
+
"string": {
|
|
4589
|
+
"type": "string",
|
|
4590
|
+
"title": "Cookie name or file path",
|
|
4591
|
+
"description": "Name of the specific cookie to load from default location, or file path to cookie file.",
|
|
4592
|
+
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
4593
|
+
"transform": [
|
|
4594
|
+
"trim"
|
|
4595
|
+
]
|
|
4596
|
+
},
|
|
4597
|
+
"object": {
|
|
4598
|
+
"type": "object",
|
|
4599
|
+
"additionalProperties": false,
|
|
4600
|
+
"required": [
|
|
4601
|
+
"name"
|
|
4602
|
+
],
|
|
4603
|
+
"anyOf": [
|
|
4604
|
+
{
|
|
4605
|
+
"required": [
|
|
4606
|
+
"path"
|
|
4607
|
+
],
|
|
4608
|
+
"not": {
|
|
4609
|
+
"required": [
|
|
4610
|
+
"variable"
|
|
4611
|
+
]
|
|
4612
|
+
}
|
|
4613
|
+
},
|
|
4614
|
+
{
|
|
4615
|
+
"required": [
|
|
4616
|
+
"variable"
|
|
4617
|
+
],
|
|
4618
|
+
"not": {
|
|
4619
|
+
"anyOf": [
|
|
4620
|
+
{
|
|
4621
|
+
"required": [
|
|
4622
|
+
"path"
|
|
4623
|
+
]
|
|
4624
|
+
},
|
|
4625
|
+
{
|
|
4626
|
+
"required": [
|
|
4627
|
+
"directory"
|
|
4628
|
+
]
|
|
4629
|
+
}
|
|
4630
|
+
]
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
],
|
|
4634
|
+
"properties": {
|
|
4635
|
+
"$schema": {
|
|
4636
|
+
"description": "Optional self-describing schema URI for linters",
|
|
4637
|
+
"type": "string",
|
|
4638
|
+
"format": "uri-reference"
|
|
4639
|
+
},
|
|
4640
|
+
"name": {
|
|
4641
|
+
"type": "string",
|
|
4642
|
+
"title": "Cookie name",
|
|
4643
|
+
"description": "Name of the specific cookie to load.",
|
|
4644
|
+
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
4645
|
+
"transform": [
|
|
4646
|
+
"trim"
|
|
4647
|
+
]
|
|
4648
|
+
},
|
|
4649
|
+
"variable": {
|
|
4650
|
+
"type": "string",
|
|
4651
|
+
"title": "Environment variable name",
|
|
4652
|
+
"description": "Environment variable name containing the cookie as JSON string.",
|
|
4653
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
4654
|
+
"transform": [
|
|
4655
|
+
"trim"
|
|
4656
|
+
]
|
|
4657
|
+
},
|
|
4658
|
+
"path": {
|
|
4659
|
+
"type": "string",
|
|
4660
|
+
"title": "Cookie file path",
|
|
4661
|
+
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
4662
|
+
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4663
|
+
"transform": [
|
|
4664
|
+
"trim"
|
|
4665
|
+
]
|
|
4666
|
+
},
|
|
4667
|
+
"directory": {
|
|
4668
|
+
"type": "string",
|
|
4669
|
+
"title": "Directory path",
|
|
4670
|
+
"description": "Directory containing the cookie file.",
|
|
4671
|
+
"transform": [
|
|
4672
|
+
"trim"
|
|
4673
|
+
]
|
|
4674
|
+
},
|
|
4675
|
+
"domain": {
|
|
4676
|
+
"type": "string",
|
|
4677
|
+
"title": "Cookie domain",
|
|
4678
|
+
"description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
|
|
4679
|
+
"transform": [
|
|
4680
|
+
"trim"
|
|
4681
|
+
]
|
|
4682
|
+
}
|
|
4683
|
+
},
|
|
4684
|
+
"title": "Load cookie (detailed)"
|
|
4685
|
+
}
|
|
4686
|
+
}
|
|
4687
|
+
},
|
|
4688
|
+
"examples": [
|
|
4689
|
+
"session_token",
|
|
4690
|
+
"./test-data/auth-session.txt",
|
|
4691
|
+
{
|
|
4692
|
+
"name": "auth_cookie",
|
|
4693
|
+
"variable": "AUTH_COOKIE"
|
|
4694
|
+
},
|
|
4695
|
+
{
|
|
4696
|
+
"name": "session_token",
|
|
4697
|
+
"path": "session-token.txt",
|
|
4698
|
+
"directory": "./test-data"
|
|
4699
|
+
},
|
|
4700
|
+
{
|
|
4701
|
+
"name": "user_session",
|
|
4702
|
+
"path": "saved-cookies.txt",
|
|
4703
|
+
"domain": "app.example.com"
|
|
4704
|
+
}
|
|
4705
|
+
]
|
|
4706
|
+
}
|
|
4707
|
+
}
|
|
4708
|
+
}
|
|
4709
|
+
]
|
|
4710
|
+
},
|
|
4093
4711
|
{
|
|
4094
4712
|
"allOf": [
|
|
4095
4713
|
{
|
|
@@ -4329,6 +4947,27 @@
|
|
|
4329
4947
|
{
|
|
4330
4948
|
"loadVariables": "variables.env"
|
|
4331
4949
|
},
|
|
4950
|
+
{
|
|
4951
|
+
"saveCookie": "session_token"
|
|
4952
|
+
},
|
|
4953
|
+
{
|
|
4954
|
+
"saveCookie": {
|
|
4955
|
+
"name": "auth_cookie",
|
|
4956
|
+
"path": "auth-session.txt",
|
|
4957
|
+
"directory": "./test-data",
|
|
4958
|
+
"overwrite": true
|
|
4959
|
+
}
|
|
4960
|
+
},
|
|
4961
|
+
{
|
|
4962
|
+
"loadCookie": "session_token"
|
|
4963
|
+
},
|
|
4964
|
+
{
|
|
4965
|
+
"loadCookie": {
|
|
4966
|
+
"name": "auth_cookie",
|
|
4967
|
+
"path": "auth-session.txt",
|
|
4968
|
+
"directory": "./test-data"
|
|
4969
|
+
}
|
|
4970
|
+
},
|
|
4332
4971
|
{
|
|
4333
4972
|
"find": "Find me!"
|
|
4334
4973
|
},
|