File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ static const enum openapiKeys host2Keys[] = {
224
224
KEY_HOST ,
225
225
};
226
226
227
- const struct tagSource tagSources [] = {
227
+ static const struct tagSource tagSources [] = {
228
228
{
229
229
KIND_PATH ,
230
230
pathKeys ,
@@ -262,7 +262,7 @@ const struct tagSource tagSources[] = {
262
262
},
263
263
};
264
264
265
- const struct tagSource tagValueSources [] = {
265
+ static const struct tagSource tagValueSources [] = {
266
266
{
267
267
KIND_TITLE ,
268
268
title3Keys ,
@@ -383,14 +383,14 @@ static void inputEnd(subparser *s)
383
383
Assert (((struct sOpenAPISubparser * )s )-> type_stack == NULL );
384
384
}
385
385
386
- static void
387
- findOpenAPITags (void )
386
+ static void findOpenAPITags (void )
388
387
{
389
388
scheduleRunningBaseparser (0 );
390
389
}
391
390
392
391
extern parserDefinition * OpenAPIParser (void )
393
392
{
393
+ static const char * const patterns [] = { "openapi.yaml" , NULL };
394
394
static struct sOpenAPISubparser openapiSubparser = {
395
395
.yaml = {
396
396
.subparser = {
@@ -407,6 +407,8 @@ extern parserDefinition* OpenAPIParser (void)
407
407
408
408
parserDefinition * const def = parserNew ("OpenAPI" );
409
409
410
+ def -> patterns = patterns ;
411
+
410
412
def -> dependencies = dependencies ;
411
413
def -> dependencyCount = ARRAY_SIZE (dependencies );
412
414
You can’t perform that action at this time.
0 commit comments